summaryrefslogtreecommitdiffstats
path: root/lass/5pkgs/logify/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-04-13 11:15:05 +0200
committertv <tv@krebsco.de>2017-04-13 11:15:05 +0200
commitbcbf11a57cd399cd6e0d707401f8f1cfb0d50eea (patch)
treeb2c42263bead615b4264c453d392edcf08025f7e /lass/5pkgs/logify/default.nix
parent79bcfa03edcf7eaeb69515c99af7522f893665f4 (diff)
parent22edcfcb72dc0b728a96ab92ecca8944b81c13d0 (diff)
Merge remote-tracking branch 'prism/lassulus'
Diffstat (limited to 'lass/5pkgs/logify/default.nix')
-rw-r--r--lass/5pkgs/logify/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lass/5pkgs/logify/default.nix b/lass/5pkgs/logify/default.nix
new file mode 100644
index 000000000..bca7e7971
--- /dev/null
+++ b/lass/5pkgs/logify/default.nix
@@ -0,0 +1,7 @@
+{ curl, writeDashBin }:
+
+#usage: ping 8.8.8.8 |& logify -I
+writeDashBin "logify" ''
+ date_args=''${@:--Is}
+ while read line; do echo $(date "$date_args") $line; done
+''