Skip to content

Instantly share code, notes, and snippets.

@ccurtin
Last active March 4, 2019 04:19
Show Gist options
  • Save ccurtin/ba3a3b49774c5faf2fd501cc78165766 to your computer and use it in GitHub Desktop.
Save ccurtin/ba3a3b49774c5faf2fd501cc78165766 to your computer and use it in GitHub Desktop.
Bulk Rename Files in Shelly
# 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