First page Back Continue Last page Overview Graphics
Other shell niftiness
Learn about job control. Very handy to have around the shell and with care, can be used in scripts too.
Using perl one-liners for regular expression stuff that is easier in perl. Good for quick things, but maybe consider writing the script in perl to start with
- perl -ple 's/\s/:/g' < file2.txt
- man perlre; man perlrun
Learn special variables
- $? - exit status of last command
- $$ - process ID of current shell
- $* or $@ - all positional paremeters
- $1, $2, $3, etc - positional paremeters
- $# - number of positional parameters
RANDOM special variable (see man bash)
Notes: