Shell Scripting Recipes: A Problem-Solution Approach
When I was introduced to Unix in 1990, it was still the domain of multiuser systems and high-end workstations. Even the i386 system I started with had 12 users logging on concurrently through serial terminals. I had remote access through a blazingly fast 1200 bps modem. Things were changing by the mid-1990s, when systems using the Linux kernel, integrated with GNU utilities and the X Window System, provided a viable alternative to Microsoft Windows. At the same time, computers with the power, memory, and hard drive space to run it came within reach of an individual’s pocketbook. The Internet brought fast and efficient distribution of the new systems and software (and enabled their development in the first place). Unix had arrived on the home computer. The twenty-first century has seen the burgeoning of a new breed of Unix user: the home (or small business) user whose computer experience was previously limited, at most, to Microsoft Windows. Such computers may well be used by only one person. This modern user quite likely has no intention of becoming a system administrator, and just wants to use the computer with as little fuss as possible.
What people are saying - Write a review
We haven't found any reviews in the usual places.
Whats in a Word?
Scripting by Numbers
Treading a Righteous PATH
The Dating Game
Figure 151 The Toronto FreeNet membership database screen
d Delete current record
Home on the Web
Figure 161 Web page created by mkhtmlindex
Call the same program with options from the command
Taking Care of Business
Random Acts of Scripting
POP Goes the EMail
The output is in two sections The first lists all
A typical day sees between 100 and 200 messages deleted
Backing Up the Drive
Aging Archiving and Deleting
Covering All Your Databases
Figure 181 A roll offive dice
A Smorgasbord of Scripts
Internet Scripting Resources
Other editions - View all
88 printf anagram arguments ASCII backup basename bash Bourne shell bzip2 carriage return Chapter characters chris color column command line config configuration file contains convert create crossword cryptic crossword current directory cursor database decimal default delete dice digits egrep esac esac done shift etc/passwd eval exit field filename format string fpmul function getopts grep grid gzip header integer letters Linux loop match menu messages mkdir month msg_num newline number of lines OPTIND output parameter expansion Parse command-line options PATH pathname pattern POP3 positional parameters POSIX POSIX shell PostScript printat printf s\n prompt random numbers record regular expression remove result screen server set_attr shell scripts space specified standard input standard-funcs stored string-funcs stty suffix terminal text files underscore Unix Usage variable verbose mode whitespace word
Page 7 - All keyword arguments are placed in the environment for a command, not just those that precede the command name. — n Read commands but do not execute them. — t Exit after reading and executing one command. — u Treat unset variables as an error when substituting. —v Print shell input lines as they are read. —x Print commands and their arguments as they are executed.