summaryrefslogtreecommitdiffstats
path: root/lass/5pkgs/logify/default.nix
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-04-12 17:57:26 +0200
committerlassulus <lass@lassul.us>2017-04-12 17:57:26 +0200
commitc9ef03188c0cc5a7dcf145690087813e18ec1c88 (patch)
treef7d9e491e94c12b366168342163bc8a7471210eb /lass/5pkgs/logify/default.nix
parent9c49d9a4396099653ca417cadf0208987de1a779 (diff)
l 5 logify: init
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
+''