Skip to content

Instantly share code, notes, and snippets.

@twhite96
Created July 11, 2024 11:24
Show Gist options
  • Save twhite96/6a9f520ee3d489b04ff89a1028706622 to your computer and use it in GitHub Desktop.
Save twhite96/6a9f520ee3d489b04ff89a1028706622 to your computer and use it in GitHub Desktop.
batch remove dates from filenames
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