Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux replace spaces with underscore from all files in directory

find . -type f -name "* *" -exec bash -c 'mv "$0" "${0// /_}"' {} ;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #replace #spaces #underscore #files #directory
ADD COMMENT
Topic
Name
3+7 =