view bin/whoops @ 10386:79bc240d537a

<rdococ> le//rn 1+1//1+1 is window as rdocscovered by rdococ in the late 202nd decade.
author HackBot
date Fri, 10 Mar 2017 23:51:35 +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}»"