[ale] Sed/Awk/PERL question

JK jknapka at kneuro.net
Tue Dec 1 10:20:54 EST 2009


cp yourGiantFile backupInCaseJKsIdeaTotallySucks

sed -e 's/;$//' < yourGiantFile > newFile

-- JK


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
> 
> 



More information about the Ale mailing list