[ale] Sed/Awk/PERL question

Robert L. Harris robert.l.harris at gmail.com
Tue Dec 1 10:18:20 EST 2009


cat <file> | sed -e 's/;$//g' > file2

or vi <file>

:%s/;$//g
:wq!

Off the top of my head.


On 12/1/09 8:10 AM, 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
>    

-- 

:wq!
====================================================================
Robert L. Harris                     | GPG Key ID: E344DA3B
                                          @ x-hkp://pgp.mit.edu
DISCLAIMER:
       These are MY OPINIONS             With Dreams To Be A King,
        ALONE.  I speak for              First One Should Be A Man
        no-one else.                       - Manowar




More information about the Ale mailing list