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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.