Mercurial > repo
changeset 10123:77aeabfe46fc
<oerjan> sled bin/spam//s;line+1;line<len?line+1:1;
author | HackBot |
---|---|
date | Thu, 12 Jan 2017 01:35:44 +0000 |
parents | 4563c2f2fd07 |
children | 701e34dcbe22 |
files | bin/spam |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/spam Thu Jan 12 01:03:57 2017 +0000 +++ b/bin/spam Thu Jan 12 01:35:44 2017 +0000 @@ -1,1 +1,1 @@ -line="${1-$(cat /hackenv/tmp/spline)}"; len="$(wc -l /hackenv/tmp/spout | awk '{print $1}')"; echo -n "$line/$len:"; sed -n "${line}{p;q}" /hackenv/tmp/spout; echo "$((line+1))" > /hackenv/tmp/spline +line="${1-$(cat /hackenv/tmp/spline)}"; len="$(wc -l /hackenv/tmp/spout | awk '{print $1}')"; echo -n "$line/$len:"; sed -n "${line}{p;q}" /hackenv/tmp/spout; echo "$((line<len?line+1:1))" > /hackenv/tmp/spline