[script] Two scripts for working with CSV files

Ask questions about how to create a script or swap scripts with other users.
Post Reply
User avatar
pjj
Posts: 1934
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

[script] Two scripts for working with CSV files

Post by pjj »

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-scripts.zip
(1.42 KiB) Downloaded 120 times
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus

Post Reply