
# This script finds all files that start with a '#'
find /usr/src/cmd -type f -exec head -1 {} \; -print |
sed '/^#/{h
N
G
p
}
d
'
exit

# This script adds a blank line at the start of each shell
# script. This will cause any script run under csh to be
# interpreted as a bourne sh script.

set -x
cd /usr/src
for i in `find . -name '*.sh' -print`
do
ed $i <<!
1
i

.
w
q
!
done
