[ale] Bash question: | in find

Joe jknapka at earthlink.net
Fri Jan 24 13:53:53 EST 2003



Actually, the easy way to fix my problem would be to ask,
"Where the heck do I get libXaw3d.so.7, in source or
binary form, for a Slack 8.1 box?" Surely *someone*
will know. (Google doesn't, though :( )

But the fun way to fix it is to run

find /cdrom/slackware -name "*.tgz" -exec tar tzvf {} | grep Xaw3d \; -print

on my Slack 8.1 CDROM.  You'd think that'd work, but the pipe | screws
things up, since the shell gets it before find does. I tried \escaping
the pipe \|, but that doesn't work - it then shows up as an *argument*
to the tar command.

So. Anyone know how to include a pipe in a find -exec, short
of wrapping the whole argument to -exec up in a script? (Hmm,
guess I'll try that now.)

(And BTW, yes, I know it will take forever. But I gotta use up
all those CPU cycles and I/O bandwidths (?) *somehow* :-)

Thanks,

-- Joe
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list