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

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

Re: [shell-script] comando grep


From: Tiago Barcellos Peczenyj
Subject: Re: [shell-script] comando grep
Date: Thu, 23 Aug 2007 14:53:13 -0300

Bruno, egrep é o bom e velho grep sob forma de script

~> cat /bin/egrep
#!/bin/sh
exec /bin/grep -E ${1+"$@"}

[]´s Tiago

On 8/23/07, Bruno Gunter Fricke <address@hidden> wrote:
>
> Porque não direto o egrep?
>
>  [root@gunter gunter]# egrep 'TESTE.*DENIED' testeegrep
>  Linha 02 - TESTE gleisson marin bissa DENIED 456
>
>  Note que tem um ".*" ali em cima, que é o coringão! Qualquer coisa em
>  qualquer quantidade.

-- 
Tiago B Peczenyj
Linux User #405772

http://peczenyj.blogspot.com/


reply via email to

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