Because I keep forgetting, here’s a reminder to myself of the correct way to iterate through files and directories in bash, even considering spaces in filenames, whith a hat-tip to Thomas Howard Uphill:
find . -type f|grep .ext$ |while read file
do
/do/something/to "$file"
done
Silly rabbit.
Pingback: Browsing MySQL Backups « Bertie Baggio's Wonderland
Pingback: Compressing Teamspeak 3 Recordings Using sox « Bertie Baggio's Wonderland
Pingback: Quick Hacks: A script to import photos to month-based directories (like Lightroom) – Bertie Baggio's Wonderland
Pingback: Line Count Over Time: From Historical Collection to Graphing – Rob's Blog