print_index [ "field separator" [ indent [ columns [ fixwidth [ nospace ]]]]]
The output is limited to the current terminal width if the environment variable $PRINT_FIT2WIDTH is not set to False.
This report is intended to be viewed on the terminal. All lines extending the terminal window width will be cut an marked with '>>' to show that there is hidden information.
#!/bin/sh : : cat<<EOM | print_index ZIP;Postal Zip Code CITY;Name of the City STATE;State CNT;Country Shortcut COUNTRY; Country Full Name EOM : :
Result of this script when the terminal window width is smaller then the output width:
COLUMN INDEX: ZIP .............. Postal Zip Code CNT ...... >> CITY ............. Name of the City COUNTRY .. >> STATE ............ State
This report is intended to be saved to a file. This is why the environment variable $PRINT_FIT2WIDTH is set to False in this example.
#!/bin/sh : : PRINT_FIT2WIDTH=False; export PRINT_FIT2WIDTH cat<<EOM | print_index ZIP;Postal Zip Code CITY;Name of the City STATE;State CNT;Country Shortcut COUNTRY; Country Full Name EOM : :
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.