grep博大精深啊

用*nix肯定没有不用grep的,据说这玩意还是HR的最爱,简单的用可以轻松刷选简历之类的,只要看里面有没有相应技能关键字就成了。

其实它还是挺强的,甚至于可以做逆向环视,不过我还不清楚它如何输出捕获型括号里面的内容

set fastComp to do shell script "defaults read com.apple.Xcode PBXCustomTemplateMacroDefissnitions|grep -Po \"(?<=ORGANIZATIONNAME = \\\")([^\\\"]*)\""
 斜线很烦人。。。

猜你喜欢

转载自bukkake.iteye.com/blog/834793