Mercurial > repo
changeset 12054:405c0e846fcc draft
<fizzie> sled /hackenv/bin/spam//s|/hackenv/tmp/|$HACKENV/tmp/|g
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sat, 16 Nov 2019 21:37:14 +0000 |
parents | 79ccc7d404cb |
children | 095301793384 |
files | bin/spam |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/spam Sat Nov 16 21:35:56 2019 +0000 +++ b/bin/spam Sat Nov 16 21:37:14 2019 +0000 @@ -1,1 +1,1 @@ -line="${1-$(cat /hackenv/tmp/spline)}"; len="$(awk 'END{print NR}' /hackenv/tmp/spout)"; echo -n "$line/$len:"; sed -n "${line}{p;q}" /hackenv/tmp/spout; echo "$((line<len?line+1:1))" > /hackenv/tmp/spline +line="${1-$(cat $HACKENV/tmp/spline)}"; len="$(awk 'END{print NR}' $HACKENV/tmp/spout)"; echo -n "$line/$len:"; sed -n "${line}{p;q}" $HACKENV/tmp/spout; echo "$((line<len?line+1:1))" > $HACKENV/tmp/spline