Mercurial > repo
view bin/sled @ 9515:9323eb89de86
<oerjan> sled bin/sedlast//s/; echo.*//
author | HackBot |
---|---|
date | Sat, 29 Oct 2016 19:36:49 +0000 |
parents | ae4d924e677f |
children | 61719e6e2316 |
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" ;