A case study:
bundle program
37
Suppose a friend asks for copies of shell files in your bin
directory
$ cd ~/bin
$ for i in *.sh
> do
> echo ===== This is file $i =============
> cat $i
> done | mail
[email protected]
Pipeline & input/output redirection can be applied to for, while, until loop.