zzapper wrote:
Is Xargs still reqd for
find . -name '*.cfm' -exec grep -i {} \;
Well, not exatctly. grep -i does not show you the filename, if you call
it this way.
You could either use
find . -name '*.cfm' -exec grep -i something {} /dev/null \;
which would make grep to show the filename. grep will think that it
searches multiple files, and will not find something in /dev/null. This
solution works well under Unix. With Cygwin, you may not have devices
available in /dev, depending on your installation.
The solution with xargs is probably faster with a large number of files
because the grep program is not started that often.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/