Mercurial > repo
view bin/sled @ 9053:7e6fc6fdd94b
<oerjan> sled bin/emoclew//s,>,>\\\\[\\\\],;s,<,<\\\\]\\\\[,
author | HackBot |
---|---|
date | Sun, 18 Sep 2016 00:04:01 +0000 |
parents | c6382f86a76d |
children |
line wrap: on
line source
[[ "$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"; }