#! /bin/bash # Removes spaces in filenames (replaces them with underscore) # Thu, 18 Oct 2007 21:34:45 -0400 for file in *; do echo Converting "$file" to "${file// /_}" mv "$file" "${file// /_}" done