Previous: , Up: Editing Fields   [Contents][Index]

5.4 Renaming Fields

Another use of recset is to rename existing fields. This is achieved using the -r flag. To rename all instances of the Expiry field occurring in any record of type Item to UseBy, 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.