Book description
According to IDC, over 170,000 new servers were shipped in the first quarter of 2003. That also means that there were potentially more than 170,000 people like you charged with administering these systems without the proper knowledge or training to do so. Linux Shell Scripting with Bash will help you learn to not only get your system up and running quickly by employing the Bash shell, but it will also show you professional scripting solutions through the use of structured programming and standard Linux development tools. The book focuses on the Linux environment, which the shell relies on to function, and the robust Linux tool set, making this book ideal for learning shell scripting. Real-world scripts are included that are readable, extendable and easy to debug. This book is an asset to any Linux user.
Table of contents
- Copyright
- About the Author
- Acknowledgments
- We Want to Hear from You!
- Reader Services
- Introduction COSC 101
- 1. The Linux Environment
- 2. Operating the Shell
- 3. Files, Users, and Shell Customization
- 4. Script Basics
- 5. Variables
-
6. Expressions
- Expansions
- The Basic if Command
- File Expressions
- Multiple Tests
- Strings
- Arithmetic Expressions
- Logical Expressions
- Relational Operations
- Bitwise Operations
- Self-Referential Operations
- Other let Features
- temperature.bash: Converting Fahrenheit to Celsius
- Arithmetic Tests
- Pattern Recognition
- Globbing Options
- Filename Brace Expansion ( {..} )
-
Dollar Sign Substitutions
- ANSI C Escape Expansion ($')
- Locale Translation ($")
- Variable Name Matching (!*)
- Variable Length (#)
- Default Values (:-)
- Assignment of Default Values (:=)
- Variable Existence Check (:?)
- Overriding a Default Value (:+)
- Substrings (:n)
- Substring Removal by Pattern (%, #, %%, and ##)
- Substring Replacement by Pattern (//)
- Command Result Substitution ( (..) )
- Arithmetic Expression Substitution ( ((..)) )
- mixer.bash: HTML Color Mixer
- Reference Section
- 7. Compound Commands
- 8. Debugging and Version Control
- 9. Parameters and Subshells
- 10. Job Control and Signals
-
11. Text File Basics
- Working with Pathnames
- File Truncation
- Identifying Files
- Creating and Deleting Files
- Moving and Copying Files
- More Information About Files
- Transferring Files Between Accounts (wget)
- Transferring Files with FTP
- Transferring Files with Secure FTP (sftp)
- Verifying Files
- Splitting Large Files
- Tabs and Spaces
- Temporary Files
- Lock Files
- Named Pipes
- Process Substitution
- Opening Files
- Using head and tail
- File Statistics
- Cutting
- Pasting
- Columns
- Folding
- Joining
- Merging
-
Reference Section
- type Command Switches
- file Command Switches
- stat Command Switches
- statftime Command Format Codes
- wget Command Switches
- ftp Command Switches
- csplit Command Switches
- expand Command Switches
- unexpand Command Switches
- mktemp Command Switches
- head Command Switches
- tail Command Switches
- wc Command Switches
- cut Command Switches
- paste Command Switches
- join Command Switches
- merge Command Switches
- 12. Text File Processing
- 13. Console Scripting
- 14. Functions and Script Execution
- 15. Shell Security
- 16. Network Programming
- 17. Data Structures and Databases
- 18. Final Topics
- A. A Complete Example
- B. Summary of Bash Built-In Commands
- C. Bash Options
- D. Error Codes
- E. Signals
- F. ASCII Table
- Glossary
Product information
- Title: Linux Shell Scripting with Bash
- Author(s):
- Release date: January 2004
- Publisher(s): Sams
- ISBN: 9780672326424
You might also like
book
Learning Linux Shell Scripting
Unleash the power of shell scripts to solve real-world problems by breaking through the practice of …
book
Shell Scripting: Expert Recipes for Linux, Bash, and More
A compendium of shell scripting recipes that can immediately be used, adjusted, and applied The shell …
book
Linux Command Line and Shell Scripting Techniques
Practical and actionable recipes for using shell and command-line scripting on your Linux OS with confidence …
book
Mastering Linux Shell Scripting
Master the complexities of Bash shell scripting and unlock the power of shell for your enterprise …