changeset 8292:f7eb1a2d57c1

<shachaf> mkx bin/spam//line="$(cat /hackenv/tmp/spline)"; len="$(wc -l /hackenv/tmp/spout | awk \'{print $1}\')"; echo -n "$line/$len:"; sed -n "${line}p" /hackenv/tmp/spout; echo "$((line+1))" > /hackenv/tmp/spline
author HackBot
date Fri, 03 Jun 2016 00:46:26 +0000
parents 26bcede56dc6
children c9e09a643692
files bin/spam
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/spam	Fri Jun 03 00:37:31 2016 +0000
+++ b/bin/spam	Fri Jun 03 00:46:26 2016 +0000
@@ -1,1 +1,1 @@
-line="$(cat /hackenv/tmp/spline)"; sed -n "${line}p" /hackenv/tmp/spout; echo "$((line+1))" > /hackenv/tmp/spline
+line="$(cat /hackenv/tmp/spline)"; len="$(wc -l /hackenv/tmp/spout | awk '{print $1}')"; echo -n "$line/$len:"; sed -n "${line}p" /hackenv/tmp/spout; echo "$((line+1))" > /hackenv/tmp/spline