dotfiles/.local/bin/scripts/predate

6 lines
167 B
Plaintext
Raw Normal View History

#!/bin/sh
# Add the modification date in front of the filename
for file
do mv --verbose --interactive "$file" "$(stat --format %y "$file" | cut -d' ' -f1)_$file"
done