view bin/whoops @ 9966:2d2cd698f7e5

<oerjan> sled bin/5//s/[^;]*/cmd="${1-quote}"/
author HackBot
date Thu, 15 Dec 2016 00:51:10 +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}»"