Skip to content

Instantly share code, notes, and snippets.

@hnishi
Created August 25, 2022 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hnishi/5d33f84b4747a073873aa5ab1ef5cf17 to your computer and use it in GitHub Desktop.
Save hnishi/5d33f84b4747a073873aa5ab1ef5cf17 to your computer and use it in GitHub Desktop.
Remove prefix of filenames with bash
for i in $(ls *md)
do
git mv $i ${i#DB_table-}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment