The script launch the ed program with the following list of commands:[tt]
$-8,$w separatefile [/tt]write the last 9 lines to separatefile[tt]
$-8,$d [/tt]delete the last 9 lines[tt]
w [/tt]update the original file[tt]
q [/tt]quit ed
Anyway:
man ed
man yourshell
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886