Insert a line to the beginning of a file using sed:
sed '1 s/^/This is my first line\n/' inFile.txt > outFile.txt
Source:
https://linuxconfig.org/how-to-insert-line-to-the-beginning-of-file-on-linux
Insert a line to the beginning of a file using sed:
sed '1 s/^/This is my first line\n/' inFile.txt > outFile.txt
Source:
https://linuxconfig.org/how-to-insert-line-to-the-beginning-of-file-on-linux