Skip to main content

## echo

The echo command echoes its CSV input to its output. It is intended mainly for debugging, sanity-checking CSVfix itself and as a way of listing CSV files in a standard format. Used with the -sep and -osep flags, it also provides a simple way to change the CSV inter-field separator.

See also: order

The following example displays the cities.csv file:

csvfix echo data/cities.csv

which produces:

"London","GB"

"Paris","FR"

"Edinburgh","GB"

"Amsterdam","NL"

"Rome","IT"

"Athens","GR"

"Berlin","DE"

To change the inter-field separator to a semicolon, and remove quoting, use:

csvfix echo -smq -osep ';' data/cities.csv

which produces:

London;GB

Paris;FR

Edinurgh;GB

Amsterdam;NL

Rome;IT

Athens;GR

Berlin;DE

Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator

####