|
NAMEexcel2csv SYNOPSISBy default, the CSV output goes to STDOUT: excel2csv --file file.xlsx > file.csv You can also save to a file directly: excel2csv --file file.xlsx --output file.csv Or even write to STDERR: excel2csv --file file.xlsx --output STDERR By default, the CSV file will be in the UTF-8 encoding. You can change the encoding: excel2csv --file file.xlsx --output_encoding CP1252 --output file_cp1252.csv It can also autmatically trim whitespace from around all cell values: excel2csv --file file.xlsx --trim Use the --sheet option to read from a sheet/tab other than the first one. The following will pull from sheet 2: excel2csv --file file.xlsx --sheet 2 You do not have to pass the --file and --output option keys. The first non-keyed option will be used as the filename, and the second non-keyed option will be the output. Other keyed options can still be passed in: excel2csv file.xlsx file.csv --trim Bash file globbing is also supported. This will parse through each xls file in the current directory and print out the CSV output from each one to STDOUT. excel2csv *.xls gz files can also be parsed: excel2csv file.xls.gz excel2csv *.xls.gz You can even pipe in the binary excel data: cat file.xls | excel2csv > file.csv ARGS
|