0

My question is basically the same as this previous question...

How to change all occurrences of a word in all files in a directory

...except I'm trying to change the reference to a header file.

For example,I'm trying to change [lessthan]abc/filename.h[greaterthan] to "filename.h", is this even possible using the same syntax, or should I be looking to whip myself up a quick program to do it?

Thanks

Community
  • 1
  • 1

1 Answers1

1

You can do it easily with sed:

sed -i -e 's,<abc/filename.h>,"filename.h",' *
Kurt Stutsman
  • 3,994
  • 17
  • 23