Grep / ACK

On October 15, 2009, in Fedora, Linux, Tips, Tricks, by admin

Grep / ACK

Ack can be replacement for grep…..

# yum install ack

Suppose you are on /var/www/html, here you want to search text “phpsolutions” in all files in current directory…. you can use:

# ack phpsolutions
# man ack    (for more options)

grep : print lines matching a pattern.

find : search for files in a directory.

# grep -iR 'phpsolutions' *.txt 
(It will search phpsolutions in all text files in current directory)


2 Responses to Grep / ACK

  1. Anonymous says:

    You completed several good points there. Used to do a search around the issue and located the majority of people goes in addition to using your blog.

  2. Anonymous says:

    I’ve recently started a blog, the info you provide on this site has solved the problem tremendously. We appreciate you all of your time & work…

Leave a Reply