annotate bin/sled @ 8264:932afd0dcd8e

<oerjan> revert
author HackBot
date Wed, 01 Jun 2016 06:39:36 +0000
parents 2b85de3574cc
children c6382f86a76d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8264
932afd0dcd8e <oerjan> revert
HackBot
parents: 8263
diff changeset
1 [[ "$1" == ?*//* ]] || { echo 'usage: sled file//script'; exit 1; }; key="${1%%//*}"; value="${1#*//}"; [[ -f "$key" ]] || exit 1; sed -i "$value" "$key" && { echo -n "$key//"; cat "$key"; }