[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] a scripting problem
- Subject: [ale] a scripting problem
- From: esoteric at 3times25.net (Geoffrey)
- Date: Wed Nov 19 20:54:41 2003
- In-reply-to: <[email protected]>
- References: <[email protected]>
Stephen Turner wrote:
> hey in class im learning scripting altho i know some allready well very
> basic, anyways how do you pipe data output from find such as when it
> returns '/home/bin/mkusr' to grep? i want to 'grep $myvariable
> $output-of-find' i usually throw int the grep -e flag. how do you pipe
> the output of find to grep? lol my teacher didnt think it was possible
> (its her first time teaching linux)
grep $myvariable $(find .... -print)
or
find .... -print |xargs grep $myvariable
--
Until later, Geoffrey esoteric at 3times25.net
Building secure systems inspite of Microsoft