Mercurial > repo
view bin/spam @ 9946:ff9abfd68195
<oerjan> slwd rules of wisdom//s/spaced/& with no space at the end/
author | HackBot |
---|---|
date | Mon, 12 Dec 2016 01:08:35 +0000 |
parents | ae96ffbb0fa8 |
children | 77aeabfe46fc |
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+1))" > /hackenv/tmp/spline