23 Jun 2005 13:08

find | while read i; do foo "$i"; done

Thanks to tensai for inspiring me to realize this incredible idiom. No longer will file and directory names with spaces cause me untold grief. Behold:

find ~/music -type d | while read i; do mp3gain -k -a "$i"/*mp3; done