newbie: to pipe the result of a program as commandlineparameter
for another.
Herculano de Lima Einloft Neto
hlen at ig.com.br
Sat Nov 22 05:43:27 PST 2003
You can use:
find [whatever] -exec rm -rf '{}' \;
or
find [whatever] | xargs rm -rf
Usually, the answer to your question would be: use xargs or put the
second command between apostrophes. Something like:
vi `which mozilla`
I think if you use rm -rf `find [whatever]` it might work..
DON'T use these lines unless you're absolutely sure your find will
return exactly what you want.. rm -rf is the most destructive Unix
command, so if you don't know what you're doing, maybe you should wait a
couple of months until you do. :)
Read the man pages for rm, find and xargs so you can understand this.
Best,
--
Herculano de Lima Einloft Neto <hlen at ig.com.br>
More information about the freebsd-questions
mailing list