Date: Sat, 22 Nov 2003 11:43:17 -0200 From: Herculano de Lima Einloft Neto <hlen@ig.com.br> To: freebsd-questions@freebsd.org Cc: hlen@ig.com.br Subject: Re: newbie: to pipe the result of a program as commandlineparameter for another. Message-ID: <3FBF67F5.1020704@ig.com.br>
next in thread | raw e-mail | index | archive | help
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@ig.com.br>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FBF67F5.1020704>