舉報

會員
Learning Linux Shell Scripting
LearningLinuxShellScriptingisidealforthosewhoareproficientatworkingwithLinuxandwanttolearnaboutshellscriptingtoimprovetheirefficiencyandpracticalskills.
最新章節
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Summary
- Drop the table
- Delete the data
- Update the data
品牌:中圖公司
上架時間:2021-06-25 21:02:04
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Leave a review - let other readers know what you think 更新時間:2021-06-25 22:03:32
- Other Books You May Enjoy
- Summary
- Drop the table
- Delete the data
- Update the data
- Retrieving data from a table
- Inserting the data into table
- Creating a table
- Create user through a shell script
- Predefined variables
- The Define command
- The Grant statement
- Creating a user in Oracle SQL command line
- Switching to an Oracle user
- Working with Oracle Database
- Drop the database
- Drop the table
- Describing a table
- Altering a table
- Deleting data
- Updating data
- Retrieving data from the table
- Inserting data into table
- Creating a table in MySQL
- Creating a user
- Show databases
- Creating a database
- Checking the version of MySQL database
- Working with a MySQL Database
- Introduction to database administration
- Database Administration Using Shell Scripts
- Summary
- A summary of commands for embedding other programming languages
- Embedding other language code in Bash – comparative study
- Embedding Ruby code
- Embedding Python code in Bash shell Script
- Sending user input to the embedded code
- Using data from file by embedded language
- Sending data to an embedded language code
- Storing other language output to Bash variable
- Sending output to Bash Script
- Embedding other language code in Bash shell script
- Embedding other language codes or scripts in Bash shell scripts
- Automating backup activity
- Backup across the network
- Backup command rsync
- Backup of files from command line
- Taking Backup and Embedding Other Languages in Shell Scripts
- Summary
- Using the do while loop
- Using the while loop
- Using the for loop
- Decision-making using an if statement
- Using variables in awk
- Writing the awk script file
- Regular expressions
- Actions
- Patterns
- Patterns and actions
- The input field separator
- Field separators
- Fields
- The NR variable
- The $0 variable
- The record separator
- Records
- Records and fields
- awk commands from within a file
- How awk works
- Input from commands
- Input from files
- Using awk
- The meaning of awk
- Using awk
- sed scripting
- Holding and exchanging – the h and x commands
- Holding and getting – the h and g commands
- Quit – the q command
- Transform – the y command
- Changing – the c command
- Inserting – the i command
- Appending – the a command
- Writing to files – the w command
- Reading from files – the r command
- Multiple edits – the e command
- Range of selected lines the comma
- Substitution – the s command
- Deleting – the d command
- Printing – the p command
- How to modify a file with sed
- Addressing in sed
- Understanding regular expression usage in sed
- Understanding sed
- sed – non-interactive stream editor
- The basics of regular expressions
- Pattern Matching and Regular Expressions with sed and awk
- Summary
- User level settings – default files
- System-wide setting scripts
- User initialization scripts
- System initialization boot scripts
- Understanding run levels
- The kernel startup and init process
- System startup inittab and run levels
- System Startup and Customizing a Linux System
- Summary
- The progress meter box (gauge)
- The radiolist box (radiolist)
- The menu box (menu)
- The checklist box (checklist)
- A password box
- The textbox (textbox)
- The input box (inputbox)
- The yes/no box (yesno)
- Creating a message box (msgbox) with a title
- Creating a message box (msgbox)
- Creating dialog boxes with the dialog utility
- Running scripts or processes even if the user logs out
- Using traps inside a function
- Listing traps
- Resetting signals
- Ignoring signals
- Using the trap command
- Understanding signals and traps
- Using Advanced Functionality in Scripts
- Summary
- Creating a library of functions
- Command source and period (.)
- Running functions in the background
- Returning a word or string from a function
- Returning information from functions
- Declaring local variables in functions
- Sharing the data with many functions
- Passing arguments or parameters to functions
- Removing functions
- Displaying functions
- Understanding functions
- Working with Functions
- Summary
- The IFS and loops
- Running loops in the background
- Piping the output of a loop to a Linux command
- Using until
- Working with the do – while loop
- Exiting from a loop with a break
- Exiting from the current loop iteration with the continue command
- Looping with the for command
- Automating Repetitive Tasks
- Summary
- Implementing simple menus with select
- Switching case
- The null command
- The if/elif/else command
- Multiple test commands and if constructs
- File handling with the if command
- Checking for null values
- String handling with the if construct
- Using the exit command and the ? variable
- Numerical handling if constructs
- Conditional constructs – if else
- Logical test operators
- File-testing binary operators
- File test options for the test command
- Numerical comparison operators for the test command
- String comparison options for the test command
- Using the test command with double brackets
- Using the test command
- Understanding the test command
- Checking the exit status of commands
- Automating Decision-Making in Scripts
- Summary
- Floating-point arithmetic
- Binary octal and hex arithmetic operations
- Using an arithmetic expansion
- Using the expr command for arithmetic
- Using the let command for arithmetic
- Listing integers
- Using a declare command for arithmetic
- Performing Arithmetic Operations in Shell Scripts
- Summary
- Good practices for Shell scripts
- The vi editor setting for debugging
- Summary of debugging options for the set command
- Using the set command
- Summarizing the debugging options for the Bash shell
- Debugging mode – the tracing execution (option -x)
- Debugging mode - displaying commands (option -v)
- Debugging mode – disabling the shell (option -n)
- Debugging
- Summarizing usage of the exec command
- Executing the command and storing the results in a file
- File handling - reading line by line
- Displaying the file descriptor information from the /proc folder
- Reading from one file and writing to another file
- Using the read command on a file descriptor (fd)
- Understanding reading and writing to a file
- Understanding reading from a file
- Understanding the opening writing and closing of a file
- Using exec to assign a file descriptor (fd) to file
- Introducing file handling
- File handling
- The here string and the <<< operator
- Turning off variable substitution
- Using the << here operator for FTP usage and data transfer
- A script for sending messages to all logged-in users
- The utility ed and here operator
- The here operator with the wc command
- The here operator with the sort command
- The here document and the << operator
- Summarizing the read command with options
- Interactive shell scripts – reading user input
- Neat Tricks with Shell Scripting
- Summary
- Accessing array values
- Creating an array and initializing it
- Working with arrays
- Understanding default parameters
- Understanding getopts
- Resetting positional parameters
- Understanding shift
- Understanding set
- Working with command-line arguments (special variables set and shift getopt)
- Working with read-only variables
- Exporting variables
- The local variable and its scope
- Working with environment variables
- Understanding variables
- Exploring Expressions and Variables
- Summary
- Pipes
- Command1 || command2
- Command1 && command2
- Command1 & command2
- Logical operators
- Command grouping
- Command1; command2
- Command separators
- Command substitution
- The exit status
- Checking and disabling shell internal commands
- Learning shell interpretation of commands
- Working with Commands
- Summary
- Pattern searching using grep
- Pattern matching with the vi editor
- Brace expansion
- Redirection
- File descriptors
- IO redirection
- The sort command
- The tr command
- The comm command
- The uniq command
- The join command
- The paste command
- The cut command
- The diff command
- Head and tail
- Text filtering tools
- Using Text Processing and Filters in Your Scripts
- Summary
- Understanding crontab
- Understanding "at"
- Process monitoring tools – top iostat and vmstat
- Process management
- Monitoring processes using ps
- Introducing process basics
- Drilling Deep into Process Management Job Control and Automation
- Summary
- Sticky bit
- Setgid
- Setuid
- Setting umask
- Technique two – the numeric method
- Technique one – the symbolic method
- The chmod command
- Changing file permissions
- Working with permissions
- Working more effectively with Shell – basic commands
- Various directories
- When not to use scripts
- Compiler and interpreter – differences in process
- Our first script – Hello World
- Learning basic Linux commands
- Working in the shell
- Tasks done by the shell
- Comparison of shells
- Getting Started and Working with Shell Scripting
- Reviews
- Get in touch
- Conventions used
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the reviewer
- About the author
- Contributors
- PacktPub.com
- Why subscribe?
- Packt Upsell
- Dedication
- 版權信息
- 封面
- 封面
- 版權信息
- Dedication
- Packt Upsell
- Why subscribe?
- PacktPub.com
- Contributors
- About the author
- About the reviewer
- Packt is searching for authors like you
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Conventions used
- Get in touch
- Reviews
- Getting Started and Working with Shell Scripting
- Comparison of shells
- Tasks done by the shell
- Working in the shell
- Learning basic Linux commands
- Our first script – Hello World
- Compiler and interpreter – differences in process
- When not to use scripts
- Various directories
- Working more effectively with Shell – basic commands
- Working with permissions
- Changing file permissions
- The chmod command
- Technique one – the symbolic method
- Technique two – the numeric method
- Setting umask
- Setuid
- Setgid
- Sticky bit
- Summary
- Drilling Deep into Process Management Job Control and Automation
- Introducing process basics
- Monitoring processes using ps
- Process management
- Process monitoring tools – top iostat and vmstat
- Understanding "at"
- Understanding crontab
- Summary
- Using Text Processing and Filters in Your Scripts
- Text filtering tools
- Head and tail
- The diff command
- The cut command
- The paste command
- The join command
- The uniq command
- The comm command
- The tr command
- The sort command
- IO redirection
- File descriptors
- Redirection
- Brace expansion
- Pattern matching with the vi editor
- Pattern searching using grep
- Summary
- Working with Commands
- Learning shell interpretation of commands
- Checking and disabling shell internal commands
- The exit status
- Command substitution
- Command separators
- Command1; command2
- Command grouping
- Logical operators
- Command1 & command2
- Command1 && command2
- Command1 || command2
- Pipes
- Summary
- Exploring Expressions and Variables
- Understanding variables
- Working with environment variables
- The local variable and its scope
- Exporting variables
- Working with read-only variables
- Working with command-line arguments (special variables set and shift getopt)
- Understanding set
- Understanding shift
- Resetting positional parameters
- Understanding getopts
- Understanding default parameters
- Working with arrays
- Creating an array and initializing it
- Accessing array values
- Summary
- Neat Tricks with Shell Scripting
- Interactive shell scripts – reading user input
- Summarizing the read command with options
- The here document and the << operator
- The here operator with the sort command
- The here operator with the wc command
- The utility ed and here operator
- A script for sending messages to all logged-in users
- Using the << here operator for FTP usage and data transfer
- Turning off variable substitution
- The here string and the <<< operator
- File handling
- Introducing file handling
- Using exec to assign a file descriptor (fd) to file
- Understanding the opening writing and closing of a file
- Understanding reading from a file
- Understanding reading and writing to a file
- Using the read command on a file descriptor (fd)
- Reading from one file and writing to another file
- Displaying the file descriptor information from the /proc folder
- File handling - reading line by line
- Executing the command and storing the results in a file
- Summarizing usage of the exec command
- Debugging
- Debugging mode – disabling the shell (option -n)
- Debugging mode - displaying commands (option -v)
- Debugging mode – the tracing execution (option -x)
- Summarizing the debugging options for the Bash shell
- Using the set command
- Summary of debugging options for the set command
- The vi editor setting for debugging
- Good practices for Shell scripts
- Summary
- Performing Arithmetic Operations in Shell Scripts
- Using a declare command for arithmetic
- Listing integers
- Using the let command for arithmetic
- Using the expr command for arithmetic
- Using an arithmetic expansion
- Binary octal and hex arithmetic operations
- Floating-point arithmetic
- Summary
- Automating Decision-Making in Scripts
- Checking the exit status of commands
- Understanding the test command
- Using the test command
- Using the test command with double brackets
- String comparison options for the test command
- Numerical comparison operators for the test command
- File test options for the test command
- File-testing binary operators
- Logical test operators
- Conditional constructs – if else
- Numerical handling if constructs
- Using the exit command and the ? variable
- String handling with the if construct
- Checking for null values
- File handling with the if command
- Multiple test commands and if constructs
- The if/elif/else command
- The null command
- Switching case
- Implementing simple menus with select
- Summary
- Automating Repetitive Tasks
- Looping with the for command
- Exiting from the current loop iteration with the continue command
- Exiting from a loop with a break
- Working with the do – while loop
- Using until
- Piping the output of a loop to a Linux command
- Running loops in the background
- The IFS and loops
- Summary
- Working with Functions
- Understanding functions
- Displaying functions
- Removing functions
- Passing arguments or parameters to functions
- Sharing the data with many functions
- Declaring local variables in functions
- Returning information from functions
- Returning a word or string from a function
- Running functions in the background
- Command source and period (.)
- Creating a library of functions
- Summary
- Using Advanced Functionality in Scripts
- Understanding signals and traps
- Using the trap command
- Ignoring signals
- Resetting signals
- Listing traps
- Using traps inside a function
- Running scripts or processes even if the user logs out
- Creating dialog boxes with the dialog utility
- Creating a message box (msgbox)
- Creating a message box (msgbox) with a title
- The yes/no box (yesno)
- The input box (inputbox)
- The textbox (textbox)
- A password box
- The checklist box (checklist)
- The menu box (menu)
- The radiolist box (radiolist)
- The progress meter box (gauge)
- Summary
- System Startup and Customizing a Linux System
- System startup inittab and run levels
- The kernel startup and init process
- Understanding run levels
- System initialization boot scripts
- User initialization scripts
- System-wide setting scripts
- User level settings – default files
- Summary
- Pattern Matching and Regular Expressions with sed and awk
- The basics of regular expressions
- sed – non-interactive stream editor
- Understanding sed
- Understanding regular expression usage in sed
- Addressing in sed
- How to modify a file with sed
- Printing – the p command
- Deleting – the d command
- Substitution – the s command
- Range of selected lines the comma
- Multiple edits – the e command
- Reading from files – the r command
- Writing to files – the w command
- Appending – the a command
- Inserting – the i command
- Changing – the c command
- Transform – the y command
- Quit – the q command
- Holding and getting – the h and g commands
- Holding and exchanging – the h and x commands
- sed scripting
- Using awk
- The meaning of awk
- Using awk
- Input from files
- Input from commands
- How awk works
- awk commands from within a file
- Records and fields
- Records
- The record separator
- The $0 variable
- The NR variable
- Fields
- Field separators
- The input field separator
- Patterns and actions
- Patterns
- Actions
- Regular expressions
- Writing the awk script file
- Using variables in awk
- Decision-making using an if statement
- Using the for loop
- Using the while loop
- Using the do while loop
- Summary
- Taking Backup and Embedding Other Languages in Shell Scripts
- Backup of files from command line
- Backup command rsync
- Backup across the network
- Automating backup activity
- Embedding other language codes or scripts in Bash shell scripts
- Embedding other language code in Bash shell script
- Sending output to Bash Script
- Storing other language output to Bash variable
- Sending data to an embedded language code
- Using data from file by embedded language
- Sending user input to the embedded code
- Embedding Python code in Bash shell Script
- Embedding Ruby code
- Embedding other language code in Bash – comparative study
- A summary of commands for embedding other programming languages
- Summary
- Database Administration Using Shell Scripts
- Introduction to database administration
- Working with a MySQL Database
- Checking the version of MySQL database
- Creating a database
- Show databases
- Creating a user
- Creating a table in MySQL
- Inserting data into table
- Retrieving data from the table
- Updating data
- Deleting data
- Altering a table
- Describing a table
- Drop the table
- Drop the database
- Working with Oracle Database
- Switching to an Oracle user
- Creating a user in Oracle SQL command line
- The Grant statement
- The Define command
- Predefined variables
- Create user through a shell script
- Creating a table
- Inserting the data into table
- Retrieving data from a table
- Update the data
- Delete the data
- Drop the table
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-06-25 22:03:32