Book description
Covering all major platforms-Linux, Unix, Mac OS X, and Windows-this guide shows programmers and power users how to customize an operating system, automate commands, and simplify administration tasks using shell scripts
Offers complete shell-scripting instructions, robust code examples, and full scripts for OS customization
Covers shells as a user interface, basic scripting techniques, script editing and debugging, graphing data, and simplifying administrative tasks
In addition to Unix and Linux scripting, the book covers the latest Windows scripting techniques and offers a complete tutorial on Mac OS X scripting, including detailed coverage of mobile file systems, legacy applications, Mac text editors, video captures, and the Mac OS X Open Scripting Architecture
Table of contents
- Copyright
- About the Authors
- Credits
- Introduction
-
1. Introducing Shells
- 1.1. What Is a Shell?
- 1.2. Why Use Shells?
-
1.3. What Kind of Shells Are There?
- 1.3.1. The Bourne Shell
- 1.3.2. The C Shell
- 1.3.3. The Korn Shell
- 1.3.4. Bash, the Bourne Again Shell
- 1.3.5. tcsh, the T C Shell
- 1.3.6. Other Shells
- 1.3.7. Graphical Shells
- 1.3.8. The Official POSIX Shell
- 1.3.9. Default Shells
- 1.3.10. Choosing a Shell
- 1.3.11. Changing Your Default Shell
- 1.3.12. Running a Shell from Within Another Shell
- 1.3.13. Finding Out More About the Shell
- 1.4. How Do Shells Fit into a Graphical Environment?
- 1.5. Entering Commands
- 1.6. Command Editing
- 1.7. Working with Wildcards
- 1.8. Running Commands in the Background
- 1.9. Summary
-
2. Introducing Shell Scripts
- 2.1. What Are Shell Scripts?
- 2.2. Alternatives to Shells: Other Scripting Languages
- 2.3. Tools to Edit Shell Scripts
- 2.4. Writing Scripts
- 2.5. Summary
- 2.6. Exercises
- 3. Controlling How Scripts Run
- 4. Interacting with the Environment
- 5. Scripting with Files
- 6. Processing Text with sed
- 7. Processing Text with awk
- 8. Creating Command Pipelines
- 9. Controlling Processes
- 10. Shell Scripting Functions
- 11. Debugging Shell Scripts
-
12. Graphing Data with MRTG
- 12.1. Working with MRTG
- 12.2. Monitoring Other Data with MRTG
- 12.3. Installing MRTG
- 12.4. Writing Scripts for MRTG
- 12.5. Configuring MRTG
- 12.6. Running MRTG
- 12.7. Monitoring Your Computer with MRTG
- 12.8. Monitoring Networks with MRTG
- 12.9. Monitoring Applications with MRTG
- 12.10. Summary
- 12.11. Exercises
- 13. Scripting for Administrators
- 14. Scripting for the Desktop
- A. Answers to Exercises
-
B. Useful Commands
- B.1. Navigating the System
- B.2. Working with Files and Directories
- B.3. Manipulating Text
- B.4. Transforming Data
- B.5. Resolving Expressions
Product information
- Title: Beginning Shell Scripting
- Author(s):
- Release date: April 2005
- Publisher(s): Wrox
- ISBN: 9780764583209
You might also like
video
Robust Shell Scripting
Doing any kind of serious work on a UNIX or Linux system requires a confident understanding …
book
Classic Shell Scripting
Shell scripting skills never go out of style. It's the shell that unlocks the real potential …
book
Learning Linux Shell Scripting
Unleash the power of shell scripts to solve real-world problems by breaking through the practice of …
book
Linux Shell Scripting Cookbook - Third Edition
Do amazing things with the shell About This Book Become an expert in creating powerful shell …