Shell Programming Case Study #3


#!/bin/sh
# case study #3
# how to output to 3 different files sequentially

exec > f1
echo line 1
exec > f2
echo line 2
exec > f3
echo line 3