All pastes #514512 Raw Edit

Anonymous

public text v1 · immutable
#514512 ·published 2007-05-27 19:49 UTC
rendered paste body
ls -1 *.jpeg | while read file
do
#timestamp=$(date -r $file +%k%M%S)
#target=$(echo $file"_"$timestamp)
target=echo "${file}_`date -r "${file}" +%H:%M:%S`"
mv "$file" "$target"
done