USAGE cdx cgrep [options...] [files...]
| short | long | description |
|---|---|---|
| -p | –pattern=Column,Matcher,Pattern | Select line where this col matches this pattern. |
Lines are printed if they match all the patterns.
Patterns have three comma delimited parts. The third part can have commas. The parts are :
If you specify multiple patterns, they must all match.
-p title,x{3} – matches lines where the title field contains three x’s in a row-p 2,length,42 – match lines where column 2 it at least 42 bytes long-p 2,length.S,42 – match lines where column 2 it at least 42 characters long