summaryrefslogtreecommitdiffstats
path: root/lines-per-second
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-02-05 14:57:16 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-02-05 14:57:16 +0100
commit92214ead29cbbda27855f0e9bff8ddb5864f6f4c (patch)
tree59181dc155433168b64760de09e3434f064f0a2b /lines-per-second
parenta0fef917fb9d7920a0f2588461b4dd4fe353ca54 (diff)
downloadbin-92214ead29cbbda27855f0e9bff8ddb5864f6f4c.tar.gz
bin-92214ead29cbbda27855f0e9bff8ddb5864f6f4c.tar.xz
Add lines-per-second
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lines-per-second')
-rw-r--r--lines-per-second5
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}}'