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
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