Hi friends,
I have a file with content SOME TEXT HERE
I want to append the string GREAT to Line 1 of my file such that the file content should be
GREAT
SOME TEXT HERE
I can do a cat for the string great and file >> newfile and then rename newfile name to file
But this does not put GREAT at Line1. It writes in one single line like GREAT SOME TEXT HERE.
Is there any better way to do this? May be using SED/AWK?
Also please show some pointers to SED/AWk tutorials I would like to start learning them.