[nycbug-talk] Re: Simple sed question

Okan Demirmen okan
Fri Jan 7 13:49:16 EST 2005


On Fri 2005.01.07 at 13:48 -0500, Francisco Reyes wrote:
> On Fri, 7 Jan 2005 francisco at natserv.com wrote:
> 
> >507     AllianceBer Intl PremGr C     AIPCX   8.29    -2.24   -1.54
> >508     AllianceBer Intl PremGrAd     AIPYX   8.87    -1.88   -0.67
> >509     AllianceBer Intl Val A        ABIAX   14.91   5.59    9.79
> >510  AllianceBer Intl Val A    ABIAX   14.91   5.59    9.79
> >511 AllianceBer Intl Val A    ABIAX   14.91   5.59    9.79
> >512 AllianceBer Intl Val A    ABIAX   14.91   5.59    9.79
> 
> Got it. :-)
> s/^[0-9]*[<space<tab>]*//

heh - i just responded with something similar...but use "\t" instead
of <tab>:

s/^[0-9]*.[ \t]*//

okan

> 
> I think 90% of using sed/awk is learning to master regular expressions. 
> :-(
> _______________________________________________
> % NYC*BUG talk mailing list
> http://lists.nycbug.org/mailman/listinfo/talk
> %Be sure to check out our Jobs and NYCBUG-announce lists
> %We meet the first Wednesday of the month

-- 
Okan Demirmen <okan at demirmen.com>
PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB3670934
PGP-Fingerprint: 226D B4AE 78A9 7F4E CD2B 1B44 C281 AF18 B367 0934




More information about the talk mailing list