Why does the following command aiming to remove recursively all .svn folders
find . -name ".svn" | rm -rfv
doesn't work ?
I know the find
command provides the -exec
option to solve this issue but I just want to understand what is happening there.
In your example, the results from find
are passed to rm
's STDIN. rm
doesn't expect its arguments in STDIN, though.
Here is an example how input redirecting works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With