I use the following sed command to remove the line number string from file
line number
sed -i s\'/line number//g\' file
but what I need to
For those who are on SunOS which is non-GNU, the following code will help:
sed '$d' tmp.dat > test.dat