plain text
for file in `ls *doc.txt`
do
mv $file $file.old
echo '{' > temp.sed
echo ' s/^ *[Pp]arameters/PARAMETERS/g' >> temp.sed
echo ' s/^ *[Ss]yntax/SYNTAX/g' >> temp.sed
echo ' s/^ *[Ee]xample/EXAMPLE/g' >> temp.sed
echo ' s/^ *[Pp]rogrammer/PROGRAMMER/g' >> temp.sed
echo ' s/^ *[Ll]ocation/LOCATION/g' >> temp.sed
echo ' s/^ *[Dd]ocumentation/DOCUMENTATION/g' >> temp.sed
echo ' s/^ *[Dd]escription/DESCRIPTION/g' >> temp.sed
echo ' s/^ *[Ll]ast [Mm]odified/LAST MODIFIED/g' >> temp.sed
echo ' s/^ *[Ss]atus/STATUS/g' >> temp.sed
echo ' s/^ *[Rr]esults/RESULTS/g' >> temp.sed
echo ' s/^ *[Cc]omments/COMMENTS/g' >> temp.sed
echo ' s/^ *[Aa]dditional [Ee]xamples/ADDITIONAL EXAMPLES/g' >> temp.sed
echo ' s/^ *[Dd]ependencies/DEPENDENCIES/g' >> temp.sed
echo ' s/^ *[lL]anguage/LANGUAGE/g' >> temp.sed
echo ' s/^ *[Ss]ee [Aa]lso/SEE ALSO/g' >> temp.sed
echo '}' >> temp.sed
sed -f temp.sed $file.old > $file
done