The text file manipulation is one of the most common job for a system administrator, today I'm going to show how to append a string to each line of a text file.
we have a file named file0.txt and we want to append the string "text to append" to each line of this file.
we want an output like the following:
1 – The awk
awk can do almost everything on text files, here you are the awk solution for our problem
2 – Sed, the other side of the moon
3 – perl scripting language
4 – laminate files
I discovered this command some weeks ago, and I can say it can be used with success for this kind of problems
See you soon