print_index

Package: WA2L/WinTools 1.2.08
Section: Library Commands (3)
Updated: 11 January 2009
Index Return to Main Contents

 

NAME

print_index - print a standard column index

 

SYNOPSIS

WA2LWinTools/lib/print_index [ -h ]

print_index [ "field separator" [ indent [ columns ]]]

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

print a standard report column index to the terminal.

 

OPTIONS

-h
usage message.

"field separator"
field separator of the input data given via stdin . If not specified, the field separator defaults to the semicolon ( ; ).

indent
left indent of the output in characters. If not specified the output is not indented.

columns
number of columns of the column index output. If not specified a default of 2 applies.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

4
usage displayed.

 

FILES

-

 

EXAMPLES

1) print a column index

type index.csv 
 
ZIP;Postal Zip Code
CITY;Name of the City
STATE;State
CNT;Country Shortcut
COUNTRY; Country Full Name
 
type index.csv | print_index

Result of this script:


COLUMN INDEX:

  ZIP ....... Postal Zip Code       CNT ....... Country Shortcut 
  CITY ...... Name of the City      COUNTRY ... Country Full Name
  STATE ..... State

 

SEE ALSO

wintoolsintro(1), indent(3), print_header(3), print_list(3), select_columns(3)

 

NOTES

The four commands print_index(3) , select_columns(3) , print_index(3) and print_index(3) provide the functionality to efficiently produce ASCII reports having an identical look.

 

BUGS

-

 

AUTHOR

print_index was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2020 Christian Walther

This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:32:43 GMT, September 14, 2024