| SH-CSV(1) | General Commands Manual | SH-CSV(1) |
csv, getcsv - parse ``comma-separated values''
load csv
getcsv command
${csv list}
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 table, 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:
/appl/cmd/sh/csv.b
Empty lines are ambiguous: csv treats an empty line as containing a single, empty element; there is thus no way of representing a line containing no elements at all.