[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Sed/Awk/PERL question



sed 's/;\r\n/\r\n' < file1 > new_file

Just off the top of my head.....

On Tue, 2009-12-01 at 10:10 -0500, Bob Kruger wrote:
> All;
> 
> I have a 1.3GB text file that has multiple fields separated by semicolons.  Format follows:
> 
> field1;field2;field3;...field24;
> .
> .
> .
> field1;field2;field3;...field24;
> 
> I need a quick and dirty method to delete the last semicolon.
> 
> Any ideas or thoughts?
> 
> Thanks in advance for any assistance.
> 
> V/r
> 
> Bob
> 
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo