Previous: recset Invocation, Up: recset

23.2 recset Examples

Remove “TmpName” fields from any record in “data.rec”:

     $ recset -f TmpName -d data.rec

Set the secondary email of all friends to

     $ recset -f Email[1] -s friends.rec

Add the email to John Smith:

     $ recset -e "Name = 'John Smith'" -f Email -a friends.rec

Rename the secondary email fields from Email to AltEmail. Modify the record descriptor as well:

     $ recset -f Email[1] -r AltEmail friends.rec

Add a ClosedAt field to the selected record with the current date. In case it already exists, set its value instead:

     $ recset -n 102 -f ClosedAt -S `date` tasks.rec