HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
dbohdan
sqawk
Tcl2015–2022
dbohdan / sqawk

sqawk

Like awk, but with SQL and table joins

6Distinct people
15Mentions
0Explicit recommenders
316GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Like awk, but with SQL and table joins

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year15 dated mentions

Observed mentions: 2015-01-17 08:56:00 UTC to 2022-09-21 17:49:00 UTC.

012342015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments20152016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2022

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC312
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC312
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC101
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC303
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC404
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC000
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC101

What Hacker News says

15 sources
In An introduction to data processing on the Linux command line
There're lots of tools in this space that are similar in a very general way, but have widely different design choices. My tookit is https://github.com/dkogan/vnlog It's tsv-utils-like, but is strictly a wrapper around existing tools. So filtering and transformations are interpreted literally as awk (or perl) expressions. And the various cmdline options match the standard tool options because they ARE the standard tools. So you get a very friendly learning curve, but something like tsv-utils is probably faster and probably more powerful. And it looks like tsv-utils references fields by number instead of by name. Many of the others (mine included) use the field names, which makes a MAJOR usability improvement. Other tools in no particular order: https://csvkit.readthedocs.io/ https://github.com/johnkerl/miller https://github.com/eBay/tsv-ut
Read the rest
In TSV Utilities: Command line tools for large, tabular data files
In Show HN: UXY – adding structure to Unix tools
Shameless plug: Sqawk can do nearly the same without you defining a schema. $ ps aux | sqawk -output table \ 'select user, round(sum("%mem"), 2) as memtotal from a group by user order by memtotal desc' \ header=1 ┌────────┬────┐ │dbohdan │67.1│ ├────────┼────┤ │ root │3.5 │ ├────────┼────┤ │ avahi │0.0 │ ├────────┼────┤ │ daemon │0.0 │ ├────────┼────┤ │message+│0.0 │ ├────────┼────┤ │ nobody │0.0 │ ├────────┼────┤ │ ntp │0.0 │ ├────────┼────┤ │ rtkit │0.0 │ ├────────┼────┤ │ syslog │0.0 │ ├────────┼────┤ │ uuidd │0.0 │ ├────────┼────┤ │whoopsie│0.0 │ └────────┴────┘ Link: https://github.com/dbohdan/sqawk
In TextQL: Execute SQL Against CSV or TSV
https://github.com/dbohdan/sqawk It parses DSV data like Awk does, runs SQL queries against it and formats the output in one of several ways. An example I am particularly fond of is using this tool as a poor man's libxo (https://github.com/Juniper/libxo): $ ps | sqawk -output json,indent=1 'select PID,TTY,TIME,CMD from a' trim=left header=1 [{ "PID" : "3947", "TTY" : "pts/2", "TIME" : "00:00:07", "CMD" : "zsh" },{ "PID" : "15951", "TTY" : "pts/2", "TIME" : "00:00:00", "CMD" : "ps" },{ "PID" : "15952", "TTY" : "pts/2", "TIME" : "00:00:00", "CMD" : "tclkit-8.6.3-mk" }] I started a list of command line tools for querying, processing and converting structured text data: https://github.com/dbohdan/structured-text-tools.
In Ask HN: What simple tools or products are you most proud of making?
There is a lot of tools of this kind [1] but nearly all of them work with CSV or other delimiter-separated data. What made recutils stand out for me is that it has tools to modify files in place, not just select data from them, and its file format is different. The rec format is interesting because it is a specification for what others have used before without one. It seems quite readable and does not suffer from the ",,,,,," problem of CSV. [1] Here's the list of ones I have run into so far: * https://github.com/harelba/q * https://github.com/tobimensch/termsql * https://github.com/samuel/squawk * https://github.com/tjunier/sqawk I've also written one: https://github.com/dbohdan/sqawk. It turned out I wasn't the only one to come up with the name.
In GNU Recutils – Tools and libraries to access plain-text databases

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.