Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rename tool numeric linux

# rename random file names to incrementing numbers with prefix (new_name)
rename 'our $i; s/^[^.]+/sprintf "new_name-%02d", $i++/e' *.jpg
# output: new_name-00.jpg new_name-01.jpg etc
 
PREVIOUS NEXT
Tagged: #rename #tool #numeric #linux
ADD COMMENT
Topic
Name
8+9 =