|
|
|
|
|
by Aardwolf
4585 days ago
|
|
The following does not work on files with spaces according to the article: for i in $(ls *.mp3); do
some command $i
done
So does that mean, that "for" will do something per word of the output of $, rather than per line of output of it?What to do if I want to do something for every line? What for example if I really want the output of ls, find (or any other command you can put int he $()) and loop through that line per line, even if some output has spaces? Thanks. |
|