vadania
June 13th, 2007, 07:13 AM
This seemed the best place to put a CLI question:
Where can I find an easy to read grep guide? (not man pages, please!). Some reg exp info would be nice, too! For example, i have lots of entries in a directory and I do ls -l in that dir. How do I filter the results by file/directory name?
I guess it would be something like this:
ls -l | grep something
What exactly is that something? What options should I put there?
This is a simple example and I want to start learning about grep, but man pages seemed not to be the best start. I would like something like a wiki, because documentation there is usually formated (bold, italic, code, headlines, bullets) and therefore easier for me to read.
-- By the way, grep filters lists by using regular expressions, right?
Where can I find an easy to read grep guide? (not man pages, please!). Some reg exp info would be nice, too! For example, i have lots of entries in a directory and I do ls -l in that dir. How do I filter the results by file/directory name?
I guess it would be something like this:
ls -l | grep something
What exactly is that something? What options should I put there?
This is a simple example and I want to start learning about grep, but man pages seemed not to be the best start. I would like something like a wiki, because documentation there is usually formated (bold, italic, code, headlines, bullets) and therefore easier for me to read.
-- By the way, grep filters lists by using regular expressions, right?