Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 403 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 403 Bytes

bash-csvio

CSV input/output in pure bash

Function parse_line() takes an input content array and a delimiter (comma default), and populates global ${CELLS[@]} array with its content.

Function write_line() takes a delimiter and zero or more content cells, writes content to stdout in delimited .csv format, quoting as required.

This code is mainly a port of AgilePro's beautiful Java implementation.