recset(1)

recset1

Manipulate fields in a recfile

Usage

recset [OPTION] ... [FILE] ...

Overview

Alter or delete fields in records.

--no-external

don't use external descriptors.

--force

alter the records even if violating record restrictions.

--help

print a help message and exit.

--version

show version and exit.

Record selection options:

-i, --case-insensitive

make strings case-insensitive in selection expressions.

-t, --type=TYPE

operate on records of the specified type only.

-e, --expression=RECORD_EXPR

selection expression.

-q, --quick=STR

select records with fields containing a string.

-n, --number=NUM,...

select specific records by position, with ranges.

-m, --random=NUM

select a given number of random records.

Field selection options:

-f, --fields=FIELDS

comma-separated list of field names with optional subscripts.

Actions:

-s, --set=VALUE

change the value of the selected fields.

-a, --add=VALUE

add the selected fields with the given value.

-S, --set-add=VALUE

change the value of the selected fields. If they don't exist then add a new field with that value.

-r, --rename=NAME

rename the selected fields to a given name. If an entire record set is selected then the field is renamed in the record descriptor as well.

-d, --delete

delete the selected fields.

-c, --comment

comment out the selected fields.

Releases

6 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7
  2. 8–10
  3. 11
  4. 12

-m since Debian 8 (Jessie).

-R until Debian 7 (Wheezy).

Author

Written by Jose E. Marchesi.

Reporting bugs

Report bugs to: [email protected]
GNU recutils home page: <https://www.gnu.org/software/recutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>

From recutils 1.9-2 in Debian 12 (Bookworm). Parsed by carta from the page's man source.