BashPitfalls - Greg's Wiki
1. for i in $(ls *.mp3) One of the most common mistakes BASH programmers make is to write a loop like this: for i in $(ls *.mp3); do # Wrong! some command $i # Wrong! done for i in $(ls) # Wrong! for i in `ls` # Wrong! for i in $(find . -type ......