# Solved add lines of text at the end of a file using sed

September 7, 2013 at 18:20:38
Specs: Linux
 I am making a sed script that will turn a file into a LaTex-ready file. The only problem is that I need to add the string "\end{document}" to the end of the file. How would I do that?

See More: add lines of text at the end of a file using sed

#1
September 8, 2013 at 01:08:26
 $sed '$a\> "\end{document}"\' latex_file::mike

Report •

#2
September 8, 2013 at 15:10:55
 Thank you very much!

Report •

#3
September 8, 2013 at 16:31:29
 No problem,hope it worked, I was a little sleep deprived..::mike

Report •
Related Solutions