for file in <files>; do [[ $? != 0 ]] && break echo -n "$file: " ext=$(cut -d. -f2 <<< "$file") base=$( stat -c '%y' "$file" | cut -d . -f 1 | tr : . ) name="$base".${ext,,}; echo $name mv "$file" "$name" done
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter