Created
July 11, 2024 11:24
-
-
Save twhite96/6a9f520ee3d489b04ff89a1028706622 to your computer and use it in GitHub Desktop.
batch remove dates from filenames
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function removedates() { | |
for file in *.md | |
do mv "${file%%[0-9]*.md} /dates-removed/${file%*.md}" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment