This is a handy trick for renaming your files in the terminal, when you want to convert your dashes to underscores:
for F in *; do if [[ "$F" = *-* ]]; then mv -v "$F" "`echo "$F" | tr '-' '_'`"; fi; done
This is a handy trick for renaming your files in the terminal, when you want to convert your dashes to underscores:
for F in *; do if [[ "$F" = *-* ]]; then mv -v "$F" "`echo "$F" | tr '-' '_'`"; fi; done