Skip to content

Instantly share code, notes, and snippets.

@sandheepg
Created March 8, 2017 07:22
Show Gist options
  • Select an option

  • Save sandheepg/6ed4320f4d9b843a1d5523a786098bb4 to your computer and use it in GitHub Desktop.

Select an option

Save sandheepg/6ed4320f4d9b843a1d5523a786098bb4 to your computer and use it in GitHub Desktop.
Using ack in place of grep

To use Ack, make sure you have Perl installed and run the following commands in Ubuntu

sudo apt-get install ack
sudo apt-get install ack-grep

Now you can use ack-grep command to search for matches in the files

ack-grep -i some-text
# use ack-grep --help to list the possible options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment