Shell Programming in Unix, Linux and OS X is a thoroughly updated revision of Kochan and Wood’s classic Unix Shell Programming tutorial. Following the methodology of the original text, the book focuses on the POSIX standard shell, and teaches you how to develop programs in this useful programming environment, taking full advantage of the underlying power of Unix and Unix-like operating systems. After a quick review of Unix utilities, the book’s authors take you step-by-step through the process of building shell scripts, debugging them, and understanding how they work within the shell’s environment. All major features of the shell are covered, and the large number of practical examples make it easy for you to build shell scripts for your particular applications. The book also describes the major features of the Korn and Bash shells. Learn how to… Take advantage of the many utilities provided in the Unix system Write powerful shell scripts Use the shell’s built-in decision-making and looping constructs Use the shell’s powerful quoting mechanisms Make the most of the shell’s built-in history and command editing capabilities Use regular expressions with Unix commands Take advantage of the special features of the Korn and Bash shells Identify the major differences between versions of the shell language Customize the way your Unix system responds to you Set up your shell environment Make use of functions Debug scripts Contents at a Glance 1 A Quick Review of the Basics 2 What Is the Shell? 3 Tools of the Trade 4 And Away We Go 5 Can I Quote You on That? 6 Passing Arguments 7 Decisions, Decisions 8 ‘Round and ‘Round She Goes 9 Reading and Printing Data 10 Your Environment 11 More on Parameters 12 Loose Ends 13 Rolo Revisited 14 Interactive and Nonstandard Shell Features A Shell Summary B For More Information
Shell Programming in Unix, Linux and OS X, Fourth Edition
本书全面讲解了如何在POSIX标准Shell环境中开发程序,以充分发挥UNIX和类UNIX操作系统的潜在功能.
Suppose that your current directory contains the files as shown: S is mrs.todd prog! shortcut sweeney Now let's use filename substitution for the echo command: S echo * List all files mrs.todd prog! shortcut sweeney How many arguments ...
Covering all aspects of the Unix operating system and assuming no prior knowledge of Unix, this book begins with the fundamentals and works from the ground up to some of the more advanced programming techniques The authors provide a wealth ...
This book is packed with hundreds of high-quality examples. From networking and system utilities to shells and programming, this is UNIX from the ground up–both the "whys" and the "hows"–for every Mac user.
This second edition of Wicked Cool Shell Scripts offers a collection of useful, customizable, and fun shell scripts for solving common problems and personalizing your computing environment.
With this book, programmers will learn: How to install bash as your login shell The basics of interactive shell use, including UNIX file and directory structures, standard I/O, and background jobs Command line editing, history substitution, ...
Think your Mac is powerful now? Author Dave Taylor shows you how to get much more from your system by tapping into Unix, the robust operating system concealed beneath OS X's beautiful user interface.
Organised into twelve simple chapters, the book guides the students from the basic introduction to the Unix operating system and ext.
Introduces the UNIX environment for the Mac OS X and explains how to set up and configure the Terminal application; how to manage, create, and edit files; and how to navigate the Internet.