Re: Removing the last line of a file

2007-03-05 Thread Theo Van Dinter
On Mon, Mar 05, 2007 at 02:58:38PM +, Mário Gamito wrote: > I'm no PERL guru, far from that, i must confess. > I just use it in little things for system administration. > > $ perl -pi~ -e 's/include\ > /var/lib/spamassassin/3.001007/saupdates_openprotect_com/MIRRORED.BY//' > ./updates_spamassa

Re: Removing the last line of a file

2007-03-05 Thread John D. Hardin
On Mon, 5 Mar 2007, Mário Gamito wrote: > I'm no PERL guru, far from that, i must confess. > I just use it in little things for system administration. > > Now, i', trying to remove the last line of a file with: Don't become entranced by a single tool. You should be able to combine "head" and "w