I am a new Unix system user with a bash as a default shell. I can append text to a file using >> operator but how do I prepend a text to a file? I want the opposite operation of >>. How can I prepend some data to a text file? How do we add text to the beginning of a file in Bash under Linux?
[continue reading…]