Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

batch rename folders & trim spaces & add prefix / suffix

# Rename all files & add prefix
for filename in *.jpg; do mv "$filename" "prefix_$filename"; done;
# Rename all forders & remove space & add suffix
for filename in ./*;do mv "$filename" "$(echo $filename|sed 's/ /_/g')"_JRTV; done;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #batch #rename #folders #trim #spaces #add #prefix #suffix
ADD COMMENT
Topic
Name
5+8 =