Chaining commands with |
suggest changeThe | takes the output of the left command and pipes it as input to the right command. Note that this is done in a subshell. Hence you cannot set values of variables in the calling process from within a pipe.
find . -type f -a -iname '*.mp3' | \
while read filename; do
mute --noise "$filename"
done
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents