annotate bin/sled @ 9513:ae4d924e677f

<oerjan> sled bin/sled//s/[&][&].*/;/
author HackBot
date Sat, 29 Oct 2016 19:32:53 +0000
parents c989a1669243
children 61719e6e2316
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9513
ae4d924e677f <oerjan> sled bin/sled//s/[&][&].*/;/
HackBot
parents: 9075
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" ;