view bin/whoops @ 10509:2b7ce722bfa2

<wob_jonas> `` >bin/starwars echo $\'#!perl\\n\'\'@c=split/\\|/,"M0|M1|M2";print$c[rand@c],"\\n";\' && chmod -c a+x bin/starwars
author HackBot
date Sun, 26 Mar 2017 01:56:33 +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}»"