[ale] a scripting problem

Geoffrey esoteric at 3times25.net
Wed Nov 19 20:54:41 EST 2003


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



More information about the Ale mailing list