Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
bash rename files based on date modified
PhilTheLawyer
Programming language:
Shell/Bash
2021-04-28 14:27:34
2
Q:
bash rename files based on date modified
yasas
Code:
Shell/Bash
2021-02-09 06:18:52
for f in *.jpg; do mv -n "$f" "$(date -r "$f" +"%Y%m%d_%H%M%S").jpg"; done
0
Tags
name
file
files
date
base
rename
Related
bash get current date
rename all files starting with in linux
bash date variable format
rename multiple files linux
bash print specific range of rows from a file
bash view specific columns from vcf file
bash rename multiple files
select all file from date powershell
find all files edited after date linux
linux create folder with date
batch rename files
bash rename file
New to Communities?
Join the community