Mercurial > repo
view bin/sled @ 9717:9fec49b4918c
<oerjan> learn Ascii is the plural of ascius, "of or pertaining to southern countries, near the equator".
author | HackBot |
---|---|
date | Fri, 18 Nov 2016 02:32:30 +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" ;