Skip to content

Instantly share code, notes, and snippets.

@santerref
Created December 1, 2016 20:05
Show Gist options
  • Save santerref/250cfe2c90838321e6e2a3297889bfca to your computer and use it in GitHub Desktop.
Save santerref/250cfe2c90838321e6e2a3297889bfca to your computer and use it in GitHub Desktop.
Replace all underscores with dashes.
#/bin/bash
for file in *; do mv "$file" `echo $file | tr '_' '-'` ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment