The ack manual says:
−−ignore−file=FILTERTYPE:FILTERARGS
Ignore files matching FILTERTYPE:FILTERARGS. The filters are
specified identically to file type filters as seen in "Defining
your own types".
Defining your own types
ack allows you to define your own types in addition to the predefined
types. This is done with command line options that are best put into an
.ackrc file − then you do not have to define your types over and over
again. In the following examples the options will always be shown on
one command line so that they can be easily copy & pasted.
ack −−perl foo searches for foo in all perl files. ack −−help=types
tells you, that perl files are files ending in .pl, .pm, .pod or .t. So
what if you would like to include .xs files as well when searching for
−−perl files? ack −−type−add perl:ext:xs −−perl foo does this for you.
−−type−add appends additional extensions to an existing type.
If you want to define a new type, or completely redefine an existing
type, then use −−type−set. ack −−type−set eiffel:ext:e,eiffel defines
the type eiffel to include files with the extensions .e or .eiffel. So
to search for all eiffel files containing the word Bertrand use ack
−−type−set eiffel:ext:e,eiffel −−eiffel Bertrand. As usual, you can
also write −−type=eiffel instead of −−eiffel. Negation also works, so
−−noeiffel excludes all eiffel files from a search. Redefining also
works: ack −−type−set cc:ext:c,h and .xs files no longer belong to the
type cc.
When defining your own types in the .ackrc file you have to use the
following:
−−type−set=eiffel:ext:e,eiffel
or writing on separate lines
−−type−set
eiffel:ext:e,eiffel
The following does NOT work in the .ackrc file:
−−type−set eiffel:ext:e,eiffel
In order to see all currently defined types, use −−help−types, e.g.
ack −−type−set backup:ext:bak −−type−add perl:ext:perl −−help−types
In addition to filtering based on extension (like ack 1.x allowed), ack
2 offers additional filter types. The generic syntax is −−type−set
TYPE:FILTER:FILTERARGS; FILTERARGS depends on the value of FILTER.
is:FILENAME
is filters match the target filename exactly. It takes exactly one
argument, which is the name of the file to match.
Example:
−−type−set make:is:Makefile
ext:EXTENSION[,EXTENSION2[,...]]
ext filters match the extension of the target file against a list
of extensions. No leading dot is needed for the extensions.
Example:
−−type−set perl:ext:pl,pm,t
match:PATTERN
match filters match the target filename against a regular
expression. The regular expression is made case insensitive for
the search.
Example:
−−type−set make:match:/(gnu)?makefile/
firstlinematch:PATTERN
firstlinematch matches the first line of the target file against a
regular expression. Like match, the regular expression is made
case insensitive.
Example:
−−type−add perl:firstlinematch:/perl/
More filter types may be made available in the future.
Thanks,
相关推荐
试编写一段递归子程序计算ackermann函数ACK(m,n)。对于m≥0和n≥0的ACK(m,n)函数定义如下: ACK(0,n)=n+1 ACK(m,0)=ACK(m-1,1) ACK(m,n)=ACK(m-1,ACK(m,n-1)) 程序要求: ⑴ m、n在主程序从键盘输入,输入错误显示...
82C55数据传送时序ACK82C55数据传送时序ACK82C55数据传送时序ACK82C55数据传送时序ACK82C55数据传送时序ACK
DAIKIN大金_ACK70N_空气净化器_中文说明书
阿里云, 微服务, K8S,ACK
ACK系列产品升级指南,告诉你如何升级ACK系列产品的版本。
ACK70N-W ACK70N-T 官方中文说明书PDF 大金空气净化器 日本进口
ack-etcd备份资源
nRF24L01,ACK,自动重发,自动应答,测试程序,每秒更新一次成功接收或者发送的数据包个数,注释清晰,代码简洁,具有预编译选项,单个程序包含发射和接收的测试程序,方便调试。
ZigBee实验\6.5.应答ACK帧实验
storm利用ack保证数据的可靠性,发送失败时进行重发,保证数据不丢失。
springboot整合 activeMq 消费者 消费接收消息 包含队列模式点对点发 以及 主题模式一对多 这是消费者的demo consumer 。...里面有消息重发机制,手动确认ACK模式。 配合 producer 生产者demo使用。
用c++语言编写 用堆栈的方法实现ack
tcp协议ACK机制在opnet中实现代码
ACK3116驱动程序 the USB to Virtual Serial ports device driver 串口转USB
Ackerman递归函数int ack(int m,int n)
NRF24L01无线收发例程,带ACK自动应答数据包,STM32的KEIL源代码,支持二次开发NRF24L01无线收发例程,带ACK自动应答数据包,STM32的KEIL源代码,支持二次开发NRF24L01无线收发例程,带ACK自动应答数据包,STM32的...
ack用法:http://blog.bccn.net/%E9%9D%99%E5%A4%9C%E6%80%9D/13430
ACK测试方案,真个是北京艾瑞的技术文档,很好用的。
阿里云ACK技术简介及实践.pptx