in reply to Print in box syntax

You could
  1. create an array with 9 empty fields
  2. populate fields 4,5 and 7 with the correct values
  3. join() the array fields into a string using pipe symbols
  4. print the resulting string

Implementation left to the reader. You can ask if you're having problems with a particular detail, just don't expect to get the complete code handed on a silver plate. ;)

Replies are listed 'Best First'.
Re^2: Print in box syntax
by soonix (Chancellor) on Jul 08, 2015 at 22:06 UTC

    the array should have 10 fields, because there are 9 pipe symbols :-)

    I think the OP wants something similiar to
      fmt -15 | pr -2 -s"|"
    however, that's pure supposition, although based upon the HTML source, which reveals

    | | | |Penelope |Aloysius Parker| |Creighton-Ward | |
    Update: this means, fields 3,6, and optionally 9 should contain newlines