Portable Shell Programming: An Extensive Collection of Bourne Shell ExamplesPortable Shell Programming helps you leverage the power of UNIX shell scripts by presenting hundreds of practical examples - all carefully documented, organized, and indexed. Whether you're new to UNIX shell programming or you've already written scripts, this book will make you more productive immediately. Just look up the problem you're trying to solve, and find a quick, easy-to-implement solution. Or read Portable Shell Programming cover-to-cover as a comprehensive guide to shell programming concepts and techniques. All the complete shell scripts in this book are included on the accompanying diskette. |
From inside the book
Results 1-3 of 18
Page 123
... SystemType is called to get a string that identifies the current system . The function SystemType is presented in Chapter 9 , " Ex- amples of Shell Functions . " SpaceAvail ( ) { DIRECTORY = $ 1 SYSTEM = SystemType` case $ SYSTEM in ...
... SystemType is called to get a string that identifies the current system . The function SystemType is presented in Chapter 9 , " Ex- amples of Shell Functions . " SpaceAvail ( ) { DIRECTORY = $ 1 SYSTEM = SystemType` case $ SYSTEM in ...
Page 186
... SYSTEM is assigned the string returned by the function SystemType . This function was defined on line 29 by executing the file SystemType.sh . Shell scripts that use resources that need to be released when the shell script exits must ...
... SYSTEM is assigned the string returned by the function SystemType . This function was defined on line 29 by executing the file SystemType.sh . Shell scripts that use resources that need to be released when the shell script exits must ...
Page 214
... SystemType function is saved in a variable so that it can be reused , which is more efficient than calling the function again . SYSTEM = ` SystemType` if [ " $ SYSTEM " then fi = " SUNBSD " ] Here is another example ; this time the ...
... SystemType function is saved in a variable so that it can be reused , which is more efficient than calling the function again . SYSTEM = ` SystemType` if [ " $ SYSTEM " then fi = " SUNBSD " ] Here is another example ; this time the ...
Contents
Shell Syntax | 1 |
Command Grouping | 14 |
Statements without Newlines | 20 |
Copyright | |
27 other sections not shown
Common terms and phrases
archive assigned awk print backslash bin/sh Bourne shell BSD systems Chapter column command line contains copy current directory current process current shell determine dev/null df command DownShift echo command echo Usage empty ensure esac Examples of Shell exec exit status expr command file descriptor file name file redirection file2 filel FILENAME filter find command following command following example shows getopts command grep command HP-UX hyphen int2 intl IRIX loop mand match mkdir newline null command option parse passed PATH variable portable positional parameters POSIX process ID process name read command redirect the standard remote shell remove rsh host sed script set command shell function shell script signal space specify standard error standard input standard output statement StrCmp string subshell suppress the newline SYNOPSIS System V systems SystemType temporary file terminal ULTRIX uname usage message wc command whitespace wildcard characters write