[script] Two scripts for working with CSV files
Posted: 01 Jul 2021 18:01
I often work with CSV files and have to resort to external editor to change something in a given field (I'm not always sure which field the caret is placed), so I wrote two little scripts:
csv-check.jsfs checks CSV file if each line contains the same number of records (i.e. field separators) as its header
csv-show-record.jsfs shows current record of CSV file; current field is marked with asterisc; current = where the caret is placed
Scripts don't allow for any complicated customization, you can set separator you use and that's it. Oh, and quotes as fields boundaries are not recognized.
csv-check.jsfs checks CSV file if each line contains the same number of records (i.e. field separators) as its header
csv-show-record.jsfs shows current record of CSV file; current field is marked with asterisc; current = where the caret is placed
Scripts don't allow for any complicated customization, you can set separator you use and that's it. Oh, and quotes as fields boundaries are not recognized.