I'm looking for a regular expression based search/replace GUI tool that is able to handle multiple files/subdirectories, something like grepWin but for Mac OS X.
PS. I'm aware of grep and I don't need an editor, just a standalone tool.
|
feedback
|
|
Oh, I also just found this: http://www.apple.com/downloads/macosx/development_tools/findreplaceit.html
It's developed by dProg - Philippe Docourt. I've never used it, so take this reccomendation with a grain of salt! | |||||
feedback
|
|
You're probably looking for a GUI app, but I can reccomend a terminal command. Perl can do inline replacement:
This will find all files under the current directory and replace based on the provided regexp. If you need to change directories, an easy way is to type: cd (be sure there's a space after) and then drag and drop a folder from the Finder onto the terminal window. Press return and you'll be in the folder you want; then run the perl command above. If you want perl to make backup copies before replacing, run:
| |||||||||||||
feedback
|
|
I understand that you don't need a full editor, but often the best tools are found within one. TextMate has full support for regular expressions and handles files and directories very well. Another that I haven't tried but heard good things about is TextWrangler. | |||||
feedback
|
|
I'm looking for that as well. I don't remember the name of the tool I used on Windows, was it "Search and Destroy"? It had a nice GUI and could make search and replace operations on file hierarchies. EDIT: That's heavyweight.. but Eclipse is a good option. I'm not sure if that's part of the Aptana plugin for Eclipse, but there is also a full preview, of the operation, with changes in each file, and you can check/uncheck any file before confirming the operation. I just wish there was something else to fire up those times I hang out in MacVIM :) The command line/Terminal tools are a pain to use, the regular expression engine is the older style if I'm not mistaken, and you have to escape a lot of characters, on top of those you already have to escape in a normal regular expression. No good preview or feedback mechanism either. PS: see similar topic, "Must have Search/Replace tools for text files". | ||||
|
feedback
|