Hi, Guys,
I want add header and footer in a file. I can add footer using following command:
echo "Footer" >>file.
I don't know how to add header.
Thanks in advance
Hi, Guys,
I want add header and footer in a file. I can add footer using following command:
echo "Footer" >>file.
I don't know how to add header.
Thanks in advance
Since there is no "insert" operation for file I/O, it actually involves creating a new file and replacing the old.
cat header_file file footer_file > newfile && mv newfile file
cat header_file file footer_file > new_file && mv new_file file
@ Danmero,
What's difference with Corona688's cat command?
Nothing , sorry I didn't seen the first file in his line.