Mercurial > repo
annotate bin/sled @ 8443:25d17890312c
<noloveinwaikiki> le/rn oerjan/pedantic like a STASI agent traces every unknown user. but why? game? tradition? misinformation? uncivilized sports .. ultraviolant on christmas eve. (old text: wisdom/oerjan_)
author | HackBot |
---|---|
date | Fri, 10 Jun 2016 07:54:27 +0000 |
parents | c6382f86a76d |
children |
rev | line source |
---|---|
8265
c6382f86a76d
<oerjan> sled bin/sled//s/exit 1; sed/{ echo \'Rosebud!\'; exit 1; }; sed/
HackBot
parents:
8264
diff
changeset
|
1 [[ "$1" == ?*//* ]] || { echo 'usage: sled file//script'; exit 1; }; key="${1%%//*}"; value="${1#*//}"; [[ -f "$key" ]] || { echo 'Rosebud!'; exit 1; }; sed -i "$value" "$key" && { echo -n "$key//"; cat "$key"; } |