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
Shariq
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
Member
it's not a good solution, but it seems to work well

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

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


Current Time: Sun Sep 27 22:39:08 CDT 2020