Previous: recfmt Templates, Up: recfmt


25.3 recfmt Examples

Apply a template to all the records stored in the employees.rec file:

     recsel employees.rec | recfmt 'Dear {{Name}}, you are fired.'

Read the template from a file:

     recsel employees.rec | recfmt -f fire-letter.tmpl