view bin/whoops @ 11300:3d3ef2b0ffe7

<int-e> learn Recursed is a game of surprising depth.
author HackBot
date Tue, 02 Jan 2018 19:08:00 +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}»"