Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. johnegracejr

    AWK suffix overwriting original text.

    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...

Part and Inventory Search

Back
Top