Mercurial > repo
view bin/whoops @ 12313:6048b940f5be draft
<oerjan> t ` rm karma.*
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Fri, 21 Feb 2020 03:16:56 +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}»"