Linux Shell script programming learning notes and practice, Script Programming learning notes
Http://www.1987.name/141.html
Shell Basics
- Terminal printing, arithmetic operations, common variables
- Search for specific strings in a specified directory in Linux and highlight matching keywords
- Obtain the standard input [read command] from the keyboard or file
- File descriptor and redirection
- Array, associated array, and alias usage
- Function Definition, execution, passing parameters, and recursive functions
- Conditional test operations and flow control statements
- Get the time and date format and latency [date, sleep command]
- DEBUG internal field delimiter IFS and script
- Display, read, or splice file content [cat command]
- File Search and print file list [find command]
- [Xargs command]
- Character conversion, deletion, and compression tools [tr command]
- Sort, single, and repeat text [sort, uniq command]
- Split file name extract file extension or extract file name [%, % And #, #]
- Features of Shell Regular Expressions and grep, sed, and awk
- Search for the text tool in the file [grep command]
- File field splitting tool by column [cut command]
- Text processing stream editor [sed command]
- Process text and data [awk programming]
- Temporary File naming method and random number [tempfile command]
- Create And split files of any size [dd, split, csplit command]
- Linux file comparison, intersection of text files, difference sets, and deviation [comm command]
- Use commands to download website files or webpages [wget, lynx command]
- Command Line advanced network tool [curl command]
- Monitor file and directory access information and record [inotifywait command]
- Linux System Log-related commands, files, and management tools [logrotate, logger commands]
- Current logon user, startup log, and startup fault information [who, w, users, uptime, last, lastb command]
- Time spent on computing command execution [time Command]
- Archive and decompress data [tar, cpio, gzip, bzip, lzma, zip]
Shell practice
- A Linux Server uploads file scripts to multiple servers at the same time.
- Linux VPS and Linux system anti-DDOS script
- Nginx smooth upgrade script for uninterrupted services
- Linux/Unix: summary
- Simple MySQL database regular backup Shell script
Two books for LINUX SHELL
For beginners, You can first look at "Linux commands, editors and Shell programming" and "Practical LINUX + SHELL programming and Server Management".
After reading the advanced Bash Script Programming Guide with a certain understanding of shell, you will find it easier.
Books on LINUX shell Script Programming
<Linux Shell programming> <Linux System Management/red hat9 from entry to entry> <24 hours proficient in UNIX shell programming "proficient in UNIX Shell script programming" can be bought .. query the local bookstore.