comparison bin/whoops @ 12150:e82ba8366616 draft

<oerjan> slbd whoops//s,[(],HACKENV/$(,
author HackEso <hackeso@esolangs.org>
date Mon, 18 Nov 2019 02:34:19 +0000
parents e87bf60ce012
children 627b52c6b2cb
comparison
equal deleted inserted replaced
12149:e87bf60ce012 12150:e82ba8366616
1 OLD="$HACKENV/wisdom/$1"; [ -z "$1" ] && OLD="$(lastfiles)"; NEW="${OLD}s"; if [ -f "$NEW" ]; then echo "«${NEW}» already exists"; exit 1; fi; mv "$OLD" "$NEW" && echo "«${OLD}» -> «${NEW}»" 1 OLD="$HACKENV/wisdom/$1"; [ -z "$1" ] && OLD="$HACKENV/$(lastfiles)"; NEW="${OLD}s"; if [ -f "$NEW" ]; then echo "«${NEW}» already exists"; exit 1; fi; mv "$OLD" "$NEW" && echo "«${OLD}» -> «${NEW}»"