computing
  • 0

Sed With Optional Characters

  • 0

Right now I am using the sed command:

sed -i ‘s/getline(/getlin3(/g’ * .c

Unfortunately sometimes the programmers whose code I am using called getline() and sometimes they called getline ().

I was wondering if anyone knows how I can put an optional space into sed so that both get replaced by the same command.

Thanks!

Share