append esc string

I have a request that is simple, but I can't figure out how to do it. I have a unix file that I want to append the following string to the front of the file

<esc>&l1O<esc>(0U<esc>(s0p16.66h8.5v0s0b0T

and an

<esc>E

to the end. I know that I could do something like

cat start_file report_file end_file > new_report_file

However, I can't figure out how to save the ESCAPE character in the start and end file. I feel silly asking this, but I have never had to do it before.

\033 is octal for ascii 27 esc. Try using this as a literal:

echo "\033&l1O\033(0U\033(s0p16.66h8.5v0s0b0T" > somefile
cat somefile report_file > new_report_file

Thank you very much