grep remove no such file or directory

2009-05-06 Thread cseguino
or directory I would like not to display the No such file or directory output. Can anyone help me ? Cheers, Christophe -- View this message in context: http://www.nabble.com/grep-remove-%22no-such-file-or-directory%22-tp23405434p23405434.html Sent from the Gnu - Bash mailing list archive

Re: grep remove no such file or directory

2009-05-06 Thread Roman Rakus
On 05/06/2009 02:14 PM, cseguino wrote: Hello, I'm executing the following command using cygwin : $ find . | xargs grep -v No such file or directory | grep StateRB grep: ./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-base/Copy: No such file or directory

Re: grep remove no such file or directory

2009-05-06 Thread Greg Wooledge
On Wed, May 06, 2009 at 04:03:51PM +0200, Roman Rakus wrote: On 05/06/2009 02:14 PM, cseguino wrote: $ find . | xargs grep -v No such file or directory | grep StateRB grep: ./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-base/Copy: No such file or directory

Re: grep remove no such file or directory

2009-05-06 Thread Andreas Schwab
Greg Wooledge wool...@eeg.ccf.org writes: If your actual problem is Find all the files containing the string StateRB, and suppress all error messages, then use this: find . -type f -exec grep -l StateRB {} \; 2/dev/null Or with a recent version of find (also POSIX): $ find . -type f -exec