MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | xgrep [-iv] <regexp> <filepattern> |
| 3 | or |
| 4 | xgrep [-iv] <regexp> (when reading from a pipe) |
| 5 | |
| 6 | DESCRIPTION |
| 7 | Search for the regular expression <regexp> in all files matching the |
| 8 | <filepattern>. |
| 9 | Works simular to the Unix command "grep". The reslut will be written |
| 10 | to <STDOUT> and may be piped into another command. |
| 11 | |
| 12 | OPTIONS |
| 13 | -v reverts the sense of <regexp>. |
| 14 | |
| 15 | -i matches case-insensitive |
| 16 | |
| 17 | EXAMPLES |
| 18 | xgrep Deepthought /log/SHOUTS |
| 19 | This will search throught the shout log file for any line which has |
| 20 | the word "Deepthought" in it. |
| 21 | |
| 22 | xgrep create\(\) *.c |
| 23 | This will search for all lines of all lpc code files in the current dir |
| 24 | which have the function "create()" defined. |
| 25 | |