Linux – ACK – Basic Usage
There are times where you may need to search for code snippets throughout your codebase, for example if you are planning on deprecating a function, or change the argument list etc. I used to use ‘fgrep’, but a friend locked me onto ‘ack’, which I find much more useful out of the two. You can find more information at ack’s website @ http://betterthangrep.com/.
By default ack searches are recursive, so it’s one less flag you have to pass (vs fgrep -r), not that big of a deal, but still nice. Also ack output is easier to read and can be configured to your preferences.
Case Insensitive Search
ack -i 'string'
There may be times where you want to exclude a dir from the search, so you don’t end up a ton of permission errors for example.
ack --ignore-dir=dir 'string'
- Linux – SELinux – SEModule – Compile .pp module from .te file
- Linux – Using Curl to Test Response Headers
- CentOS – sealert – Convert audit messages into human readable (and understandable) format
- Apache – Httpd – SELinux – Permission denied – File Permissions Deny Server Access
- MySQL – Percona – Release Notes – Identifying Changes Between Versions
- Linux – CentOS – Install Mycrypt
- Linux – CentOS – GIT – Version Mismatch – CentOS5 CentOS6
- Linux – PHP – Apache – HTTP Error 500
- Linux – CentOS6 – Git – fatal – Where do you want to fetch from today?
- Linux – CentOS6 – httpd – mod_file_cache – mod_mem_cache – mod_imagemap – Cannot Load into Server – Cannot Open Shared Object