Previous: recfix Invocation, Up: recfix

24.2 recfix Examples

Check and fix a rec database, invoked both destructively and as a filter:

     $ recfix --check data.rec
     $ recfix data.rec
     $ cat data.rec | recfix --check data.rec

Physically sort the record sets contained in a file:

     $ recfix --sort data.rec

Encrypt any non encrypted confidential fields in a file using a given password:

     $ recfix --encrypt -s "passphrase" secrets.rec

Generate Id entries in a stockage database in records missing them. The record descriptor of the Item record set must be defining Id as an auto-generated field:

     $ recfix --auto stockage.rec