I'm trying to delete the first line of my text file using:-
sed -n '1,1d' $TEMPFILE > $TEMPFILE
but, this deletes all text from the file.
I think i'm missing carridge returns or new lines from the end of each line
so the I think sed sees all text in the file as one line. Although, when I
use vi I can see that the file seems normal (i.e. there are lines in it).
Should I convert the file somehow? I created the file by running a command
and redirecting it's output to a file using >.