-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
csvtools dependency #22
Comments
update: csvtool is provided in fedora via |
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 |
Hey there! Maybe it's an option for those that don't have |
Thank you for introducing me to Thank you very much for sharing! |
I'm glad! I just updated the gist with some better error handling if you do not have a I'm not sure if the script handles file-specific rules as introduced in Chapter 12, though. |
Thanks @ratoru for writing this updated I have a question though. Why did you change rules=$(
for file in ${dir}/*.rules; do
# Ignore comments, since they break fzf call
grep -v '^#' "$file"
done | paste -s -d ' ' -
) This breaks the
|
Ah interesting! There was a bug with my previous version, that I tried to fix by introducing another bug. Thank you for catching it @austinletson!
|
Ah, I see. Thanks again! |
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 oncsvtool
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)The text was updated successfully, but these errors were encountered: