Hello everyone,
This is my first posting. I have read the rules of this forum. I have searched many various threads and haven't found one that applies to my situation or suggestions to fix the issue. I do appreciate the help.
I am trying to execute a basic UNIX script in a Solaris environment using the Korn shell.
I simply want to use sed to delete the first line in my file (the column headings row) and output to a file - that's it.
I've tried the following and they all delete the first row as desired,
but the last row is erroneously deleted for some reason:
sed "/SpBene/"d /path/data.txt
sed -e '1d' /path/data.txt
sed -e '1d' /path/data.txt > data.tmp
mv data.tmp > data.txt
Whether the output is to screen or file, the results are the same.
I appreciate any help!