anakin30 has asked for the wisdom of the Perl Monks concerning the following question:
i have a filename access and i tail the file to grep "MOD" or "DEL" with the below command. tail -f access | egrep -i '(MOD|DEL)' But how can I grep with 'and' condition? I tried below command. tail -f access | egrep -i '(MOD&DEL)', but nothing is returned
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what is grep command for and condition
by toolic (Bishop) on Aug 17, 2010 at 15:15 UTC | |
| |
|
Re: what is grep command for and condition
by moritz (Cardinal) on Aug 17, 2010 at 15:06 UTC | |
|
Re: what is grep command for and condition
by aquarium (Curate) on Aug 17, 2010 at 23:30 UTC | |
by anakin30 (Acolyte) on Aug 18, 2010 at 08:37 UTC | |
|
Re: what is grep command for and condition
by Marshall (Canon) on Aug 18, 2010 at 09:05 UTC |