view bin/whoops @ 11811:eccd6dfb4d39 draft

<fizzie> learn The password of the month has been replaced with a security key for protection against advanced persistent threats.
author HackEso <hackeso@esolangs.org>
date Wed, 01 May 2019 21:48:29 +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}»"