Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 5
    So what have you actually tried? I see that you have linked to a few questions and say they failed, but how did they fail? IMO the best example uses the rename command. I suspect your rename would be as simple as rename -n 's/#/safeNBC/' *.jpg. Commented Dec 19, 2014 at 21:26
  • 1
    I tried rename -n 's/#U00a9/safe/' *.jpg and the command was accepted but no changes occurred. Commented Dec 19, 2014 at 23:36
  • 1
    Sure, as you would have seen from the documentation you surely reviewed, the -n is the no act option. Which lets you see if it works before you actually use it. Did the output on the screen show the potential new names correctly? Commented Dec 19, 2014 at 23:55
  • 1
    I apologize I copied and pasted your example without paying full attention, I did the rename command without the -n. I believe @DTK address the problem, I was not escaping the #. Commented Dec 20, 2014 at 8:17
  • 1
    Replacing strings in filenames on MacOS: superuser.com/questions/152627/… Commented Nov 26, 2018 at 10:07