yuliyan,
@yuliyan@nahe.social avatar

Masters of the terminal, which magic spell do I have to type in order to batch-remove the last 12 characters on all files?

Before:
SL370034.JPG.d1709304955

After:
SL370034.JPG

The ".dxxxxxxxxxx" part always consists of 12 characters where "." and "d" are character 1 and 2 followed by ten single digits.

visone,
@visone@fosstodon.org avatar

@yuliyan
Maybe something like this?
for i in $(find . -type f) ; do mv $i ${i%.*} ; done

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Bash
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines