Grepper: Difference between revisions

From software
Jump to navigation Jump to search
(Created page with "Small usefull command line program called '''grepper''' which is a usefull to complement POSIX '''grep'''. # You supply a file containing all the ''keys'' that will be search...")
 
No edit summary
Line 1: Line 1:
Small usefull command line program called '''grepper''' which is a usefull to complement POSIX '''grep'''.
Small usefull command line program called '''grepper''' which is a usefull to complement POSIX '''grep'''.
The idea is that you have a file that can be 'whatever' delimited and then you want to extract entire rows, but you only want to do the search in specific columns.


# You supply a file containing all the ''keys'' that will be searched for in the ''datafile''. The program will only do a single pass of the ''datafile''.
# You supply a file containing all the ''keys'' that will be searched for in the ''datafile''. The program will only do a single pass of the ''datafile''.
# You specify which column to use for the search.
# You specify which column to use for the search.
The program supports the following options which should make it somewhat similar to '''grep'''
* -i don't care about cases (capital letter vs small letter)
* -w seach for whole words
*-v do complement

Revision as of 18:53, 15 March 2014

Small usefull command line program called grepper which is a usefull to complement POSIX grep.

The idea is that you have a file that can be 'whatever' delimited and then you want to extract entire rows, but you only want to do the search in specific columns.

  1. You supply a file containing all the keys that will be searched for in the datafile. The program will only do a single pass of the datafile.
  2. You specify which column to use for the search.

The program supports the following options which should make it somewhat similar to grep

  • -i don't care about cases (capital letter vs small letter)
  • -w seach for whole words
  • -v do complement