head -n -1 (sed -n -e '1,$-1p' is incorrect) sed question, as stupid as it could be.
Is it possible to write "head -n -1" equivalent in sed? (or anything simpler)
I need some tiny script to write all but last one line. I was confident that gnu sed would work, 'sed -n -e '1,$-1p' which did not. It took almost an hour for me to get to 'head -n -1'
Simply, I am curious if it is possible.
|All times are GMT -5. The time now is 04:22 PM.|