diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-02-05 14:57:16 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-02-05 14:57:16 +0100 |
commit | 92214ead29cbbda27855f0e9bff8ddb5864f6f4c (patch) | |
tree | 59181dc155433168b64760de09e3434f064f0a2b | |
parent | a0fef917fb9d7920a0f2588461b4dd4fe353ca54 (diff) | |
download | bin-92214ead29cbbda27855f0e9bff8ddb5864f6f4c.tar.gz bin-92214ead29cbbda27855f0e9bff8ddb5864f6f4c.tar.xz |
Add lines-per-second
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | lines-per-second | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lines-per-second b/lines-per-second new file mode 100644 index 0000000..a9411c0 --- /dev/null +++ b/lines-per-second @@ -0,0 +1,5 @@ +#!/bin/bash + +# this is really just a snippet to be copied when needed + +exec perl -e 'while (<>) {$l++;if (time > $e) {$e=time;print "$l\n";$l=0}}' |