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
In reply to OT: what is grep command for and condition by anakin30
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |