for
For variable ExamplesPaginate files specified on the command line; save each result:
for file do pr $file > $file.tmp done Search chapters for a list of words (like fgrep -f ):
for item in `cat program_list` do echo "Checking chapters for" echo "references to program $item..." grep -c "$item.[ Extract a one-word title from each file and use as new filename:
for file do name=`sed -n 's/NAME: //p' $file` mv $file $name done |
|