mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
heuretes: fix table display
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
writers,
|
writers,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
xan,
|
xan,
|
||||||
|
util-linux,
|
||||||
}: let
|
}: let
|
||||||
database = fetchurl {
|
database = fetchurl {
|
||||||
url = "http://c.krebsco.de/greek.csv";
|
url = "http://c.krebsco.de/greek.csv";
|
||||||
@@ -9,5 +10,5 @@
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
writers.writeDashBin "heuretes" ''
|
writers.writeDashBin "heuretes" ''
|
||||||
${xan}/bin/xan search -s simple "^$*$" ${database} | ${xan}/bin/xan table
|
${xan}/bin/xan search -s simple "$*" ${database} | ${util-linux}/bin/column -s, -t
|
||||||
''
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user