Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make ack include .conf files?

Tags:

grep

ack

How to configure ack (sometimes distributed as ack-grep) to always include .conf files into search?

like image 703
Henno Avatar asked Mar 03 '11 11:03

Henno


People also ask

What is ack ubuntu?

DESCRIPTION. ack is designed as an alternative to grep for programmers. ack searches the named input files or directories for lines containing a match to the given PATTERN. By default, ack prints the matching lines. If no FILE or DIRECTORY is given, the current directory will be searched.

What is ACK command?

Description. Ack is designed as a replacement for 99% of the uses of grep. Ack searches the named input FILEs (or standard input if no files are named, or the file name - is given) for lines containing a match to the given PATTERN . By default, ack prints the matching lines.

How do I open an .ACK file?

The best way to open an ACK file is to simply double-click it and let the default assoisated application open the file. If you are unable to open the file this way, it may be because you do not have the correct application associated with the extension to view or edit the ACK file.


1 Answers

Add the following to your .ackrc file:

--type-set=conf=.conf

Personally, I have one line in my .ackrc, which tells it to search all files:

-a
like image 149
Adam Batkin Avatar answered Sep 20 '22 08:09

Adam Batkin