If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
when i was trying to run ur command its saying
sed:3 illegal option
You must be typing something wrong, it works:
$ cat oldfile
state Desc
----- ----
TX Texas
MI Michigan
FL Florida
WA Washington
MN Minesota
$ sed -n '3,$p' oldfile >newfile
$ cat newfile
TX Texas
MI Michigan
FL Florida
WA Washington
MN Minesota
$
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb