Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove spaces from file names bash

find . -name "* *" -type d | rename 's/ /_/g'    # do the directories first
find . -name "* *" -type f | rename 's/ /_/g'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #spaces #file #names #bash
ADD COMMENT
Topic
Name
9+1 =