Last active
March 4, 2019 04:19
-
-
Save ccurtin/ba3a3b49774c5faf2fd501cc78165766 to your computer and use it in GitHub Desktop.
Bulk Rename Files in Shelly
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
# removes "wholesale-" prefix from all files. | |
for filename in wholesale-*; do | |
[ -f "$filename" ] || continue | |
mv "$filename" "${filename//wholesale-/}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment