Another use of recset is to rename existing fields. This is achieved using the
To rename all instances of the
Expiry field occurring in any
record of type
the following command suffices:
$ recset -t Item -f Expiry -r 'UseBy' stock.rec
As with most operations, this could be done selectively, using the -e flag and a selection expression.