Thursday, April 30, 2009

How TO - Multiple grep Search Pattern


bash-2.03$ cat benchmark.out |egrep -e "SOLARIS26SPARC"
  P4D/SOLARIS26SPARC/2006.1/109255 (2006/10/17)
  P4/SOLARIS26SPARC/2006.1/104454 (2006/08/11)

bash-2.03$ cat benchmark.out |egrep -e "SOLARIS26SPARC" |egrep -e "17"
  P4D/SOLARIS26SPARC/2006.1/109255 (2006/10/17)
bash-2.03$

1 comment:

Silent Eyes said...

http://tipsnskills.blogspot.com/