Mercurial > repo
view bin/whoops @ 10608:cb35bcd04f6f
<rdococ> forget five million, three hundred and eighteen thousand and eight
author | HackBot |
---|---|
date | Mon, 10 Apr 2017 20:16:59 +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}»"