sh-csv man page on Inferno

Man page or keyword search:  
man Server   579 pages
apropos Keyword Search (all sections)
Output format
Inferno logo
[printable version]

SH-CSV(1)							     SH-CSV(1)

NAME
       csv, getcsv - parse ``comma-separated values''

SYNOPSIS
       load csv

       getcsv command
       ${csv list}

DESCRIPTION
       Csv  is a loadable module for sh(1) that provides the facility to parse
       and generate  ``comma-separated	value''	 lists,	 a  widely  used  data
       exchange	 format.   Data in this format is usually in the form of a ta‐
       ble, each row of which contains one or more items, each separated by  a
       comma (,).  Items that contain a comma or a newline are surrounded with
       double-quotes (").  A double-quote within an item is represented	 by  a
       pair of double-quotes.  Two primitives are provided:

       getcsv	 Getcsv	 works	similiarly to getlines in sh-std(1).  It reads
		 from the standard input, and for  every  line	read,  invokes
		 command  with	$line set to the items found on that line (one
		 element per item).  Getcsv recognises the  usual  loop	 break
		 and continue exceptions.

       ${csv}	 Csv yields a single element containing all the items in list,
		 comma-separated and quoted as necessary.

SOURCE
       /appl/cmd/sh/csv.b

SEE ALSO
       sh(1), sh-std(1)

BUGS
       Empty lines are ambiguous: csv treats an empty  line  as	 containing  a
       single, empty element; there is thus no way of representing a line con‐
       taining no elements at all.

								     SH-CSV(1)
[top]

List of man pages available for Inferno

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net