Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash rename files based on date modified

for f in *.jpg; do mv -n "$f" "$(date -r "$f" +"%Y%m%d_%H%M%S").jpg"; done
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #rename #files #based #date #modified
ADD COMMENT
Topic
Name
3+9 =