I have some OS X files, some of which have hyphens in their filenames. I want to change all occurrences of hyphens to underscores.
How can I do this from the command line on OS X?
So, if I have this:
a.txt b-c.txt d_e-f.txt
I'd like to rename them to this:
a.txt b_c.txt d_e_f.txt