Category: | Utility Scripts |
Author/Contact Info | Thomas Klausner domm AT zsi.at |
Description: | I just cannot remember how to run find and grep together. After reading the FM once too often, I wrote this small wrapper..
Pass it a pseudo-regex (to match the files) and another one to look for in all files.
Example: Edited:
~Tue Jul 23 15:24:49 2002 (GMT),
by footpad: |
#!/usr/bin/perl -w $|=1; my ($findin,$grepfor)=@ARGV; my $in=qq(find -name '*$findin' -exec grep -Hn '$grepfor' {} \\;); print `$in`; |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: dgrep - Wrapper around gnu find & grep
by jmcnamara (Monsignor) on Jul 22, 2002 at 21:08 UTC | |
by Aristotle (Chancellor) on Jul 22, 2002 at 22:17 UTC | |
by domm (Chaplain) on Jul 22, 2002 at 21:51 UTC |
Back to
Code Catacombs