stockholm/lass/5pkgs/logify/default.nix
2017-04-12 17:57:26 +02:00

8 lines
171 B
Nix

{ 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
''