Tabular data handling toolkit  


Manual page for recsel(1)(TDH)

recsel(1) - select records using a conditional expression



SYNOPSIS

recsel options conditional-expression


DESCRIPTION

recsel is a filter utility that selects certain records from a stream of records using a conditional expression . Data field names or field numbers may be used in the expression, as in the examples below. Records should be white-space delimited, tabular ascii format. Records that match the conditional-expression will be written to standard output.


OPTIONS

-h

Header mode. Allows the conditional-expression to be written using field names. A field name header is expected. The header is not replicated in the output.

-H

Header mode. Same as -h except that the header is replicated in the output when there are one or more matching records.

-v

negate the expression result, i.e. print records where the condition is false

-t

Expect TAB-delimited records on input and produce TAB-delimited records on output.

-w

Suppress certain warnings.


EXAMPLE

Example: cat people | recsel -r people "@lastname like jo*"

Example: cat data | recsel "@4 in a,b,d"


Tabular data handling toolkit 
Copyright Steve Grubb


Markup created by unroff 1.0,    September 19, 2003.