Mercurial > repo
view bin/spam @ 10190:ca23294c6863
<oerjan> addquote <Phantom_Hoover> but i said at the start \'i have good reasons for this, i\'m not crazy\'!
author | HackBot |
---|---|
date | Sun, 29 Jan 2017 10:31:51 +0000 |
parents | 77aeabfe46fc |
children | 86254e96a14f |
line wrap: on
line source
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