view bin/whoops @ 12428:8d99a86a2a7d draft

<b_jonas> slashlearn password//The password of the month is Ebay DVD demagnetizer
author HackEso <hackeso@esolangs.org>
date Mon, 01 Nov 2021 20:08:38 +0000
parents 627b52c6b2cb
children
line wrap: on
line source

OLD="$HACKENV/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}»"