Shell Programming Case Study #5


#!/bin/sh
# case study #5
# process a list of files, generated by several methods

(
   ls
   cat filelist
   find /usr/stevemor -type f
) | while read FILE
do
   echo $FILE
   # we can access $fILE to ...
   #    grep the file contents
   #    compress or decompress the file
   #    encrypt the file
   #    archive the file to tape
   #    delete it, print it, move it, rename it, etc.
done