csvtk
goawk
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
csvtk
-
Align primers to a reference sequence.
No problem. You might also be interested in csvtk https://github.com/shenwei356/csvtk from the same group. Very handy set of tools.
-
stable: a package for streaming pretty text table
Hi guys, this is a shameless plug. I'd like to introduce my package for formatting text tables: https://github.com/shenwei356/stable. I've used it in a CSV/TSV toolkit, csvtk. you can try the pretty command.
-
Tool to interact with CSV
I moved to csvtk and I am pretty happy with it. I find it a robust, feature rich, self-contained program.
-
[OC]Tidy Viewer (tv) is a cross-platform csv pretty printer that uses column styling to maximize viewer enjoyment.
csvtk - Command line csv data manipulation. Go
- csvtk - CSV/TSV Toolkit
-
What are the most useful VSCode extensions you know which could be reimplemented in Emacs?
As an aside, I recently discovered the command-line program csvtk and it is really nice and useful. It helped me recently do a lot of stupid little tasks where I would have had to load the csv into LibreCalc and make some small manipulations.
-
Loading delimited data into Kafka - quick & dirty (but effective)
I want to recommend csvtk for transform csv https://github.com/shenwei356/csvtk Also cut with -d and -f options can be used to filter fields.
goawk
- GoAWK, an Awk interpreter written in Go (2018)
-
The Awk Programming Language, Second Edition
TIL: GoAWK [1] - A POSIX-compliant AWK interpreter written in Go, with CSV support.
- Looking for a script for csv file
-
Anyone else doing compiler work in Golang?
Another nice project that I have used from time to time (and a very good source for insight) is the awk interpreter written in go https://github.com/benhoyt/goawk
-
Tool to interact with CSV
No, I want exactly the opposite - it should be a , b,c as a single string field containing a literal comma, and c. For example, https://github.com/benhoyt/goawk has csv support. https://github.com/benhoyt/goawk/blob/master/docs/csv.md - more info.
-
Why does awk parse '1&&x=1' as '1&&(x=1)' not '(1&&x)=1' when '&&' is high precedence than '='?
I've had a go at solving this in this PR -- feedback welcome. I don't love it, but oh well, it solves the problem at hand. Your comment pointed me in the right direction, thanks again.
-
Looking for programming languages created with Go
There are quite a few re-implementations of scripting languages like Lua in Go. I've written an AWK interpreter in Go.
-
Oracle DB support in Benthos
github.com/benhoyt/goawk -> this library lets you embed an AWK runtime in your applications, very easy to use and useful for enabling some powerful scripting in things you build
-
Brian Kernighan adds Unicode support to Awk (May, 2022)
Yes, that's right. With my simplistic UTF-8-based implementation it turned length() -- for example -- from O(1) to O(N), turning O(N) algorithms which use length() into O(N^2). See this issue: https://github.com/benhoyt/goawk/issues/93
Similar with substr() and other string functions, which when operating as bytes are O(1), but become O(N) when trying to count the number of codepoints as UTF-8.
GNU Gawk has a fancier approach, which stores strings as UTF-8 as long as it can, but converts to UTF-32 if it needs to (eg: the string is non-ASCII and you call substr).
It looks like Brian Kernighan's code has the same issue with length() and substr(). I'm going to try to email him about this, as I think it's kind of a performance blocker.
-
Ask HN: Is having a Personal blog/brand worth it for you?
I'm not sure if it was via my personal website or just my GitHub profile, but I got my current job at Canonical due to the CTO there reaching out about my GoAWK project (https://github.com/benhoyt/goawk). I get regular recruitment emails because I have my CV/resume online: most of them are very low-effort, but 1 in 20 or something are interesting emails where the recruiter has actually looked at my website and will tailor it personally. I also just enjoy technical writing, and get joy out of sharing it on HN. So it's "worth it" for me.
What are some alternatives?
xsv - A fast CSV command line toolkit written in Rust.
bytehound - A memory profiler for Linux.
ctop - Top-like interface for container metrics
tsv-utils - eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
peco - Simplistic interactive filtering tool
intellij-awk - The missing IntelliJ IDEA language support plugin for AWK
miller - Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
tumblelog - A static tumblelog generator available as both a Perl and Python version
gojq - JSON query in Golang
awka - Revive awka - Awk to C Compiler
fastlz - Wrap over FastLz for GoLang
awk - One true awk