Skip to main content
1 of 3
Andrei
  • 35
  • 1
  • 4

How can I replace a character in all the .php files inside a folder on OS X?

I need to replace the following characters:

ă with a

â with a

î with i

ș with s

ț with t

The replacement must be case sensitive. For exaple if a letter is uppercase then it must be replaced with an uppercase letter.

I've read that I could use sed for this process but I don't know how to use it. Can anyone help me by writing the exact command that I must run in Terminal?

Thank you!

Andrei
  • 35
  • 1
  • 4