|
I am fully aware that this is 1: common knowledge for most of you and 2: not deserving enough of its own article, but does it look like I care? (Yes, thank you darling, I got that from you.)
Anyway, as we all know, the Linux terminal (or BASH as its actually called), can do some pretty awesome stuff. And I constantly stumble over scenarios where I find cool, nifty way of using a simple command to achieve something I wouldn't have been able to do without it.
In this case, I was looking for a text string but I had lots of text files and I had no idea in which text file said string would be located. Well, using grep I realize I can accomplish pretty much anything.
grep –r ‘string_i_am_looking_for’ <path>
So in my case I typed in:
grep –r ‘com.connect-utb’ /home/edvard/Documents/*
And within a couple of seconds, I had my result.. Jiffy!
Last Updated ( Friday, 27 August 2010 15:36 )
|