-
-
Save beingsane/edc5825ff6fbb62fb65671c6054ceadc to your computer and use it in GitHub Desktop.
Batch rename removing a pattern on bash
This file contains hidden or 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
#!/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