view bin/spam @ 10304:7d14a8891360

<oerjan> sled bin/slashlearn//2s,\'.*\',\'Usage: `le/[/]rn <key>//<wisdom>\',
author HackBot
date Fri, 17 Feb 2017 02:40:08 +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