3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 3104
/ 3 Years ago, mon, may 17, 2021, 1:21:20
I am trying to understand how to use the stdout as the stdin of another command. To test it, I am trying to use the following command to delete all directories from the current folder.
ls -d -- */ | rm -rf $1
I would expect the result of ls -d -- */ to be piped into the input of the rm, but it does not work. Ideas?
More From » bash