I want to be able to prepend a string to the beginning of each text file in a folder. How can I do this using bash on Linux?
This is the easiest I have worked out.
sed -i '1s/^/Text to add then new file\n/' /file/to/change
sed -i '1s/^/Text
file\n/' /file/to/change