find and replace / refactoring programmatically for files in mac
I want to make a program that will search and replace some words occurrence in 开发者_C百科a file. I am using xcode. I want to do this programmatically using some standard free API in a MAC application.
Use awk
or sed
, which are standard UNIX tools. See this nice Apple document.
精彩评论