Operating System - HP-UX
1748048 Members
4921 Online
108757 Solutions
New Discussion

Re: Flush a file keeping last 10 lines

 
SOLVED
Go to solution
Mike Miller_8
Regular Advisor

Re: Flush a file keeping last 10 lines

tail -10 showopt.rpt | {^Jwhile read linea^Jdo^Jecho $linea^Jdone^J}

show sweet and to the point.