view bin/whoops @ 12003:780525831f41 draft

<int-e> ` rm a.out izhash.c test2 testfile
author HackEso <hackeso@esolangs.org>
date Tue, 12 Nov 2019 00:53:54 +0000
parents ad82afc321ca
children 8ec9cd952dd5
line wrap: on
line source

OLD="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}»"