Skip to main content
Added tag for sed as asked by OP in question body
Source Link
Pandya
  • 25.7k
  • 31
  • 99
  • 147

I need to replace the following characters:

ă with a

â with a

î with i

ș with s

ț with t

The replacement must be case sensitive. For exapleexample if a letter is uppercaseupper-case then it must be replaced with an uppercaseupper-case letter.

I've read that I could use sedsed 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!

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!

I need to replace the following characters:

ă with a

â with a

î with i

ș with s

ț with t

The replacement must be case sensitive. For example if a letter is upper-case then it must be replaced with an upper-case 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?

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Source Link
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!