I have a csh script that gives me a text line as output.
I can add this line to the end of a file by using >>
How to add the line to be the first line of the file?
Now I use a temporary file for output and join the files as separate command to get the last output be the first line. That works but I want the script as simple as possible.
I can add this line to the end of a file by using >>
How to add the line to be the first line of the file?
Now I use a temporary file for output and join the files as separate command to get the last output be the first line. That works but I want the script as simple as possible.