view bin/whoops @ 11112:6412d84cf279

<oerjan> sled bin/rot13//1c#!/hackenv/bin/shebang_args_or_input python
author HackBot
date Sat, 22 Jul 2017 00:41:18 +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}»"