view bin/spam @ 8432:9345cfdfdd22

<shachaf> sled bin/lastfiles//s/$/ "$@"/
author HackBot
date Fri, 10 Jun 2016 03:02:26 +0000
parents f7eb1a2d57c1
children
line wrap: on
line source

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