The advantages and configuration method of Ack

Source: Internet
Author: User
Tags ack root directory

ACK compares the 10 great advantages of grep:

1. Faster: Default only to search for its preset format (such as:. Lua. py. C. cpp, etc.).

2. Greener: As long as Perl is installed, you can download an ACK script.

3. More convenient: Recursive search directory is the default method.

4. More Human nature: Default ignore. Svn/cvs/coredump and other objects that are obviously incompatible.

5. Larger RE set: Perl Re, not a subset of the GNU re.

6. Clearer: Search results support color/highlight display.

7. Shorter: 25% shorter than grep! 50% shorter than the grep-r!

8. More Humorous: Ack--thppppppppppppppppppppppppppppppppppppt

Here we will configure the following ubuntu:

1. Create bin directory in current user directory (if not): mkdir ~/bin

2. Download Ack:curl http://beyondgrep.com/ack-2.10-single-file > ~/bin/ack

3. Change the Ack file mode: chmod 777 ~/bin/ack

4. Copy to root directory: sudo cp ~/bin/ack/usr/bin/

OK, configuration finished, we can casually CD to a directory below, search our keywords, such as ack "way". You'll find more n times than grep!

This column more highlights: http://www.bianceng.cn/OS/Linux/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.