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 invalid@email.com:

     $ recset -f Email[1] -s invalid@email.com friends.rec

Add the email new@email.com to John Smith:

     $ recset -e "Name = 'John Smith'" -f Email -a new@email.com 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