Tuesday, September 13, 2005

Replacing text in multiple files

Because I changed the GUI framework, I now need to replace in all my source files the string 'wxWindows_2.4.0' by 'wxWidgets-2.6.1'. To that end I devised a small bash script that replaces a string by other in all files of a given path and its subdirectories recurively.

The exec_sed.sh bash script is available here. Feel free to use it and distribute it. If you find any errors or made some improvements, leave a comment here or contact me by e-mail.

No comments: