For all files in a directory, I want to replace the underscores in the filename with spaces.
I tried this solution, which does the opposite of what I want: https://stackoverflow.com/questions/1806868/linux-replacing-spaces-in-the-file-names
But switched the space with the underscore. That does not work, giving the error
´x´ is not a directory
Where x is the last word in the filename, for example hello_world_x
What is the correct command to replace underscores with spaces for all files in a directory?