# Rename all spaces in a file to '_'(underscores) making them more Unix-y... # think of s/\s as s/(substitute) \s(spaces) /(with) '_'(underscores) /globally(/g), # while * *(selects all files with spaces in them). rename -v -n 's/\s/_/g' * * # The -v is for verbosity and printing the results of the operation to the screen, # and -n or -nono is an optional option for testing a rename, before actually renaming. # If your satisfied you can remove the -n and make the changes.