I'm using awk to add the filename after the text on each line like this:
but the filename overwrites the original text starting at position zero.
The filename is "test.txt"
Example of text in the file:
Here is a long line of text
Expected output:
Here is a long line of text -- test.txt...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.