I’m trying to batch rename several files in my current Linux directory using the rename file Linux approach. I ran the command:
rename ‘s/foo/bar/g’ *
But none of the filenames actually changed. All the target files are in the current directory, and I expected the names to update. Am I missing something about how the rename command works, or do I need to use a different syntax or tool? Any guidance would be appreciated!