# perform a dry run first
for i in *; do echo mv "$i" "`echo $i | sed -e 's,_,-,g'`"; done
# actually run the command
for i in *; do mv "$i" "`echo $i | sed -e 's,_,-,g'`"; done
Created
January 4, 2017 11:34
-
-
Save gregdeane/28f0f26ad5aa3f8f08a9be323284579d to your computer and use it in GitHub Desktop.
Random code snippets
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment