jordansissel / fex

fex - flexible field/token extraction
Other
57 stars 9 forks source link

Make regexp selection support behave better #3

Open jordansissel opened 12 years ago

jordansissel commented 12 years ago
% cat /var/log/messages | fex '0/foo/...'

Something like that to be able to use fex to filter input but without having to resort to this pattern:

% some input | grep pattern | fex ...
jordansissel commented 12 years ago

For a hacky work around, I have found this to be useful:

Example, using backslash as the 'field separator' here, since it is infrequent in most outputs:

% cat /var/log/messages | fex '\/some pattern/'

The above effectively acts like | grep 'some pattern'