资 源 简 介
MOVED TO GITHUB - CLICK HERE
csvprintf is a simple UNIX command line utility for parsing CSV files.
cvsprintf works just like the printf(1) command line utility. You supply a printf(1) format string on the command line and each record in the CSV file is formatted accordingly. Each format specifier in the format string contains a column accessor to specify which CSV column to use, so for example %3$d would format the third column as a decimal value.
csvprintf can also convert CSV files into XML documents.
You can view the ManPage online.
Examples
Given this input file input.csv:
NAME,ADDRESS,POINTSFred Smith,"1234 Main St.Anytown, USA 39103",123.4567"Wayne ""The Great One"" Gretsky", 59 Hockey Lane , 999999