print_sample

Package: WA2L/WinTools 1.2.09
Section: Library Commands (3)
Updated: 07 January 2026
Index Return to Main Contents

 

NAME

print_sample - print CSV or TEXT data sample from stream

 

SYNOPSIS

WA2LWinTools/lib/print_sample [ -h | -V ]

print_sample [ -c | -t ] [ head_rows [ tail_rows ]] < file

cat file | print_sample [ -c | -t ] [ head_rows [ tail_rows ]]

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

print CSV (; separated) data sample as list or TEXT data sample with rows from begin (head_rows) and end (tail_rows).

The begin and end block of the sample data is marked with a vertical ellipsis (:).

The output is intended for documentation use.

 

OPTIONS

-h
usage message.

-V
program version.

-c
input is CSV data (=default).

When this option is chosen the header row is interpreted as column names and the output is formated as table as when using print_list(3).

To select certain columns use the select_columns(3) command.

-t
input is TEXT data.

head_rows
number of data rows at the beginning of the data (default=10).

tail_rows
number of data rows at the end of the data (default=10).

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

4
usage displayed.

 

FILES

-

 

EXAMPLES

-

 

SEE ALSO

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

 

NOTES

-

 

BUGS

-

 

AUTHOR

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

 

COPYRIGHT

Copyright © 2026 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: 13:38:48 GMT, January 31, 2026