stockholm/lass/5pkgs/logify/default.nix

8 lines
171 B
Nix
Raw Normal View History

2017-04-12 15:57:26 +00:00
{ 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
''