The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-18-2009
shellscripter shellscripter is offline
Registered User
  
 

Join Date: Oct 2008
Location: chennai
Posts: 16
Exclamation How to avoid grep warning messages

Hi All,
When i try to grep for a patern in an directory, I am getting warning like "No such file or directory". Anyway script is working as expected. but i need to avoid this warning message.
Pass="`find . -type f | xargs grep 'test result - pass' | wc -l`"
grep: ./results/6052278-1-717520-HFR_QFTS_ALL.__taskid2.isis_test.Beginning: No such file or directory
grep: ISIS: No such file or directory
grep: config: No such file or directory
grep: load: No such file or directory
grep: ./results/6052278-1-717520-HFR_QFTS_ALL.__taskid2.isis_test.Beginning: No such file or directory
grep: interface%2Fbasic: No such file or directory
grep: pings%2Ftraceroute%2Fcontroller: No such file or directory
grep: check: No such file or directory

Thanks,
Parkkavan