On Sun, Jun 10, 2007 at 03:44:31PM -0400, erik quanstrom wrote:
find . | grep pattern
There are tens of scripts in contrib which do that with du.
But the request was for something more like:
grep some_pattern */*
or
grep some_pattern `{find .}
or
find . | read -m |
ifs='
' while(l=`{sed 10q}) {
grep -n some_pattern $l
}
-- find --
#!/bin/rc
du -a | sed 's/[^ ]* //'
-- xarg --
#!/bin/rc
rfork s
n=10
if(~ $1 -l) {
n = $2
shift 2
}
{read -m; echo -n 'interrupted' >/proc/$pid/notepg} |
while() {
ifs='
' { l = `{sed $n^q } }
$* $l
}
-- --
find . | xarg grep -n some_pattern
--
Kris Maglione
Roses are red violets are blue
I am schizophrenic and so am I
pgp0H9qs8sBcR.pgp
Description: PGP signature
