Print this page Share

Beginning Shell Scripting

ISBN: 978-0-7645-8320-9
528 pages
April 2005
Beginning Shell Scripting (0764583204) cover image


  • 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
See More

Table of Contents


Chapter 1: Introducing Shells.

Chapter 2: Introducing Shell Scripts.

Chapter 3: Controlling How Scripts Run.

Chapter 4: Interacting with the Environment.

Chapter 5: Scripting with Files.

Chapter 6: Processing Text with sed.

Chapter 7: Processing Text with awk.

Chapter 8: Creating Command Pipelines.

Chapter 9: Controlling Processes.

Chapter 10: Shell Scripting Functions.

Chapter 11: Debugging Shell Scripts.

Chapter 12: Graphing Data with MRTG.

Chapter 13: Scripting for Administrators.

Chapter 14: Scripting for the Desktop.

Appendix A: Answers to Exercises.

Appendix B: Useful Commands.


See More

Author Information

Eric Foster-Johnson (Arden Hills, MN) is a veteran programmer who works daily with Linux, Unix, Windows, Mac OS X, and other operating systems. By day, he writes enterprise Java software for ObjectPartners, a Minnesota consulting firm. He has authored a number of Linux and Unix titles including Red Hat RPM Guide, Teach Yourself Linux, Teach Yourself Unix, and Perl Modules.

John C. Welch (Boston, MA) has more than ten years of Mac experience in the trenches of the IT world. He packs the hall at Macworld Expo where he’s a regular speaker, sharing his experiences and knowledge on using Macs effectively in business and enterprise IT environments. John’s articles are frequently featured in MacTech Magazine and WorkingMac.com, and he is semi-regularly featured on The Mac Show conducting interviews with the geekier side of the Mac community. He’s recently been touring the country presenting seminars on Mac OS X administration to IT professionals from coast to coast.

Micah Anderson has been a Unix system administrator for more than a decade. He is a Debian GNU/Linux developer and works as an independent consultant building alternative communication infrastructure and supporting the technology needs of positive grassroots alternatives.

See More


Download TitleSizeDownload
Download code for all chapters except 6, 7 and 10. 42.50 KB Click to Download
Download code for chapter 6. 2.38 KB Click to Download
Download code for chapter 7. 1.95 KB Click to Download
Download code for chapter 10. 2.57 KB Click to Download
See More

Related Titles

Back to Top