Skip to content

Instantly share code, notes, and snippets.

@pete911
Created April 4, 2012 08:47
Show Gist options
  • Save pete911/2299764 to your computer and use it in GitHub Desktop.
Save pete911/2299764 to your computer and use it in GitHub Desktop.
change underscores for hyphens in file names
for i in *.txt; do mv $i $(echo "$i" | sed 's/_/-/'); done
@jreisinger
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment