Skip to content

Instantly share code, notes, and snippets.

@MahefaAbel
Last active September 2, 2021 05:16
Show Gist options
  • Save MahefaAbel/267f61d1b092ee84f38947208976a04b to your computer and use it in GitHub Desktop.
Save MahefaAbel/267f61d1b092ee84f38947208976a04b to your computer and use it in GitHub Desktop.
Linux - Rename files or folders suffix or prefix
for file in *_; do mv -i $file `basename $file _`;done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment