August 2000
Intermediate to advanced
816 pages
29h 45m
English
for
for x [in list]
do
commands
done
Assign each word in list to x in turn and execute commands. If list is omitted, $@ (positional parameters) is assumed.
Paginate all files in the current directory; save each result:
for file in *dopr $file > $file.tmpdone
Search chapters for a list of words (like fgrep -f):
for item in `cat program_list`doecho "Checking chapters for"echo "references to program $item..."grep -c "$item.[co]" chap*done
Read now
Unlock full access