shell-script-pt
[Top][All Lists]
Advanced

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

Re: RES: [shell-script] Otimizar script


From: Aurelio Marinho Jargas
Subject: Re: RES: [shell-script] Otimizar script
Date: Wed, 7 Jul 2004 17:12:44 -0300 (ART)

olá,

--- Rodolfo Villanova escreveu:
> Experimenta usar awk:
> awk '!/^000/ { print $0 }'

ou o sed ;)

  sed '/^000/d'

ou o grep

  greg -v '^000'


awk é feio e bobo e chato e grande :)


> > De: Leonardo Ayres [mailto:address@hidden]
...
> > cat /diretorio/text/RM000895.TXT | while read LINHA; do
> >    ERRO=`echo $LINHA | cut -c1-3`
> >    if [ $ERRO -ne '000' ]; then
> >       echo "$LINHA"
> >    fi
> > done


=====
-- 
Aurelio Marinho Jargas, Curitiba, Conectiva
txt2tags v2.0 beta3 http://txt2tags.sf.net/beta/


        
        
                
_______________________________________________________
Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]