From c9ef03188c0cc5a7dcf145690087813e18ec1c88 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 12 Apr 2017 17:57:26 +0200 Subject: l 5 logify: init --- lass/5pkgs/logify/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lass/5pkgs/logify/default.nix (limited to 'lass/5pkgs/logify') 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 +'' -- cgit v1.2.3