On window,add .ackrc file under C:\Documents and Settings\yourname,with content
--type-set=aspx=.aspx
you can set a type to multi file extension,seperate by ","
--type-set=aspx=.aspx,.ascx
Note
ack syntax and behaviour has changed significantly with version 2. The equivalent of the above in version 2 would be:
--type-set=aspx:ext:aspx,ascx
Where the syntax is --type-set TYPE:FILTER:FILTERARGS and FILTER can be any of ext, is, match, firstlinematch. You should definitely read the man page for detailed explanation.
发布评论
评论(2)
在window上,在C:\Documents and Settings\yourname下添加.ackrc文件,其中的内容
可以将类型设置为多文件扩展名,以“,”分隔
Note
ack
语法和行为已随版本发生显着变化2. 版本 2 中上述内容的等效项是:其中语法为
--type-set TYPE:FILTER:FILTERARGS
且FILTER
可以是中的任何一个ext、is、match、firstlinematch
。您绝对应该阅读手册页以获取详细说明。请参阅
On window,add .ackrc file under C:\Documents and Settings\yourname,with content
you can set a type to multi file extension,seperate by ","
Note
ack
syntax and behaviour has changed significantly with version 2. The equivalent of the above in version 2 would be:Where the syntax is
--type-set TYPE:FILTER:FILTERARGS
andFILTER
can be any ofext, is, match, firstlinematch
. You should definitely read the man page for detailed explanation.see
来自 http://betterthangrep.com/
您可以将其添加到主目录中的 .ackrc 中。
from http://betterthangrep.com/
You can add this to .ackrc in your homedirectory.