Skip to content

Instantly share code, notes, and snippets.

@beingsane
Forked from isaqueprofeta/rename.sh
Created April 17, 2020 18:24
Show Gist options
  • Save beingsane/edc5825ff6fbb62fb65671c6054ceadc to your computer and use it in GitHub Desktop.
Save beingsane/edc5825ff6fbb62fb65671c6054ceadc to your computer and use it in GitHub Desktop.
Batch rename removing a pattern on bash
#!/bin/bash
for my_files in *; do mv -v "$my_files" "${my_files/my pattern to remove/}";done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment