top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
251 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
...