Skip to content

Instantly share code, notes, and snippets.

@isaqueprofeta
Created March 1, 2020 05:02
Show Gist options
  • Select an option

  • Save isaqueprofeta/7bf6a991b606d3f8edd9298e7c2f1bda to your computer and use it in GitHub Desktop.

Select an option

Save isaqueprofeta/7bf6a991b606d3f8edd9298e7c2f1bda 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