top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is grep and how would you use it to find all references to the variable total_count?

+1 vote
51 views
What is grep and how would you use it to find all references to the variable total_count?
posted Dec 16, 2014 by Anwar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

grep is a tool used to print lines matching a pattern.

For your query just execture these line:

grep -r "total_count"      file_name

It will print all the line inside file_name which contains the pattern "total_count"

For more info regarding grep do a < man grep >

answer Dec 16, 2014 by Arshad Khan
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...