Hi All,
I have several txt files i need to enter specific header and footer (both are separate) to all these files how can i do this? plz help..
Regards,
Raghav
Check this:
Dear Zaxxon, thank you for reply but i have to enter every file header in the top and footer at the botom of the text...
Hi User,
Following might be helpfull.
TEST>for file in *
> do
> awk 'BEGIN { print "header" } { print $0 } END { print "footer" }' $file > ${file}"_out"
> done
for i in *.txt;do
echo $1 > ${i}.tmp
cat $i >> ${i}.tmp
echo $2 >> ${i}.tmp
mv ${i}.tmp $i
done