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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sed query

Status
Not open for further replies.

ianholmes

Programmer
Mar 24, 2001
61
GB
I have a load of files in a directory
eg /home/test
a b c ..... Z

Each file has 2 header records & 2 trailer records which I wish to remove, leaving only the data in between.
I then wish to copy all the output files to a different directory ie /home/test2

It will probably be something like

For file in $(/home/test/*)
do
{sed command}
done

but I do not know sed at all

Can anyone help ?
Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top