Skip to main content

Timeline for A problem with find and grep

Current License: CC BY-SA 2.5

5 events
when toggle format what by license comment
Mar 30, 2011 at 5:18 vote accept Narek
Mar 27, 2011 at 19:59 comment added user unknown gnu find can handle mutliple filenames at once too: find . -name "$1" -exec grep --color $2 -- {} + if ended with + instead of ";"
Mar 26, 2011 at 23:25 comment added glenn jackman xargs will be more efficient, as it will call grep with several filenames at once, instead of one at a time using -exec
Mar 26, 2011 at 12:06 comment added user unknown find can call grep without xargs invocation, see -execdir, but in this case, the called program grep can iterate itself.
Mar 18, 2011 at 11:55 history answered Narek CC BY-SA 2.5