If you can see this check that
| next section | prev section | up | prev page | next page |
You can use special characters to cause a pattern to match various strings, in much the same way you use wildcard characters in file names to match a variety of filenames.
Examples of grep usage:
% grep '.outing' demofile % grep 'RFC-97[34]' demofile % grep -i 'rfc-97[34]' demofile (-i mean 'case-insensitive') % grep 'Tw.*on' demofile % grep 'inf.*' demofile % grep '^network' demofile % grep 'routing$' demofile
Common options for the grep command:
You should also note that you can exclude characters with a combination of the caret ^ and square brackets []. For example:
% grep 'J[aei]' names James Jane Jess Jim % grep 'J[^aei]' names Jock John Jordan
| Linux tutorials: | intro1 intro2 wildcard permission pipe vi essential admin net fwall DNS diag Apache1 Apache2 MySQL1 MySQL2 |
| Caine 2.0: | Autopsy Cli PartRec Files FileRec Browser FFoxForensics Carving |
| Caine 2.5.1: | Essentials | Basic | Search | SysIntro | 5a | 5b | 5c | 6 | 7 | 8a | 8b | 9a | 9b | 10 |
| Useful: | Quiz | Forums | Privacy Policy | Terms and Conditions |
| Site Links: | XMLZoo ActiveSQL ProgZoo SQLZoo |
Copyright @ 2004-2012 Gordon Russell. All rights reserved.