I have a bunch of output going through sed and awk.How can I prefix the output with START and suffix the answer with END?For example, if I haveAll this codeon all these linesand all theseHow could I get:STARTAll this codeon all these linesand all theseEND?My attempt was:awk '{print START;print;print END}'but I got...START    All this codeENDSTART    on all these linesENDSTART    and all theseEND
How to add a header and/or footer to a sed or awk stream?
text processing;sed;awk;regular expression
This works, as indicated by jasonwryan:awk 'BEGIN{print START}; {print}; END{print END}'