I know the problem has been resolved but I'll try as well :)

F="autosave.xmi"; C=`wc -l ${F} | cut -d " " -f 1`; N=`expr ${C} - 1`;
tail -n ${N} ${F}

You can put this in a bash script and replace "autosave.xmi" with $1
(to take the first argument).


Sharad

--~--~---------~--~----~------------~-------~--~----~
[EMAIL PROTECTED] mailing list -- group http://groups.google.com/group/iitdlug
-~----------~----~----~----~------~----~------~--~---

Reply via email to