view bin/whoops @ 9989:9036010405ad

<hppavilion[0]> mkx bin/grwfi//grep -ERsi "$@" wisdom/*
author HackBot
date Fri, 16 Dec 2016 19:46:50 +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}»"