annotate bin/sled @ 11258:edaf8efd6e21

<oerjan> learn This is something people on the channel like to talk about. We\'re often unsure what this is, though.
author HackBot
date Sat, 09 Dec 2017 11:45:07 +0000
parents 0ebb25d333b4
children 1e6e3a07b5f4
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" ;