annotate bin/sled @ 9751:9a9869f901c6

<shachaf> rm share/tanebgrep
author HackBot
date Tue, 22 Nov 2016 03:08:09 +0000
parents ae4d924e677f
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" ;