How to add header and footer?

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?:smiley:

Nothing , sorry :wink: I didn't seen the first file in his line.