====== BASH - Files - Rename spaces in a filename with hyphens ====== Replace spaces in a filename with hyphens. for f in * ; do mv "$f" $( echo $f | tr ' ' '-' ) ; done ----