full-fledged-hledger icon indicating copy to clipboard operation
full-fledged-hledger copied to clipboard

csvtools dependency

Open kiteloopdesign opened this issue 4 years ago • 8 comments

Hi, this is not a big deal and can be easily done manually but I like script resolve.sh and I'd like to make use of it. It is however dependant on csvtool binary, which is not available on Fedora. There is a number of csv processing tools out there, so I fail to see which one is being used here? I believe it may be this one?

https://colin.maudry.com/csvtool-manual-page/

In any case, I think it would make sense to use awk to process columns to make have less dependencies? (script already makes use of sk -By the way, fzf can be used as a drop-in tool)

kiteloopdesign avatar Apr 24 '22 17:04 kiteloopdesign

update: csvtool is provided in fedora via ocaml-csv package

kiteloopdesign avatar Apr 27 '22 13:04 kiteloopdesign

Sorry for not answering earlier. Yes, this is the right csvtool. I would be happy to hear about good (and maybe more widespread) substitutes, but unfortunately awk is not one. You can't easily make awk recognize ""-quoting and embedded commas, so it will break on any even slightly sophisticated csv file -- unless you happen to use exotic delimiters like | or @ or something that is entirely absent from the data values

adept avatar May 01 '22 14:05 adept