view bin/whoops @ 12016:d7b106f7062c draft

<b_jonas> `` /bin/sed -i \'s%share%"${HACKENV-/hackenv}"/share%\' bin/recipe
author HackEso <hackeso@esolangs.org>
date Thu, 14 Nov 2019 21:40:39 +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}»"