Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSVDE export file-column order wrong?

Tags:

csv

I'm using CSVDE to export data from our active directory into a CSV file, which then gets imported into a database. I'm using the -l switch to specify the columns that I'd like to export, but they don't come out in the same order consistently. Is there a workaround for this that doesn't involve opening the file in Excel? This is a nightly batch process and we'd like it to run unattended.

Thanks!

like image 363
dudemonkey Avatar asked Apr 08 '26 17:04

dudemonkey


1 Answers

If you simply want a command-line utility that can re-order the CSV (and do much else as well), take a look at my FOSS CSV stream editor, CSVfix.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!