Ack has 10 advantages over grep:
1. Faster: by default, only the preset format (for example,. Lua. py. C. cpp) is searched ).
2. Greener: if Perl is installed, download an ACK script.
3. More convenient: recursive search for directories is the default method.
4. More Humane: by default, objects that are obviously non-conforming, such as. SVN/CVS/coredump, are ignored.
5. A larger re set: Perl re, not a subset of GNU re.
6. clearer: the search results can be highlighted or highlighted.
7. Shorter: 25% shorter than grep! It is 50% shorter than grep-r!
8. More humorous: ACK -- thppppppppppppppppppppppppppppppppppppppppppt
Next we will configure it in Ubuntu:
1. Create the bin directory in the current user directory (if not): mkdir ~ /Bin
2. Download ack: curl http://betterthangrep.com/ack-standalone> ~ /Bin/ack
3. Change the ACK file mode: chmod 777 ~ /Bin/ack
4. copy to the root directory: sudo CP ~ /Bin/ack/user/bin/
OK. After the configuration is complete, we can randomly CD it to a directory and search for our keywords, such as ack "way ". You will find that it is n times better than grep !!!