June 2004
Intermediate to advanced
1056 pages
39h 58m
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 and 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