Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question print out one liner please 1

Status
Not open for further replies.

hok1man

Technical User
Feb 16, 2008
102
hi guys,

I would like to print the output from file..
but I would like to cut out 3 lines from top and 2 lines from bottom..

is there any one liner here?

Thanks guys.
 
Typo: -3 should be -2 i.e.
echo 4,\$-2p | ed thefile
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top