Home » Infrastructure » Unix » Clean Up File
Clean Up File [message #97874] Thu, 03 April 2003 11:21 Go to next message
Shariq T
Messages: 29
Registered: February 2003
Junior Member
I have a file with 2 lines worth of headers and 2 lines worth of footers. How do I create an output file minus the headers and footers from command line
Re: Clean Up File [message #97947 is a reply to message #97874] Thu, 03 July 2003 01:36 Go to previous message
Daniele Rattellini
Messages: 38
Registered: August 2002
it's not a good solution, but it seems to work well

cat yourfile | sed '1,2d' | sed '$d' | sed '$d' > newfile

Previous Topic: Keyboard mapping problem
Next Topic: ORACLE SID
Goto Forum:

Current Time: Fri Sep 22 07:06:52 CDT 2023