Mercurial > repo
view bin/sled @ 10425:a16695c2325b
<hppavilion[1]> ` mv esobible:gen_sys_1-1:3 esobible/gen_sys_1-1:3
author | HackBot |
---|---|
date | Fri, 17 Mar 2017 20:00:06 +0000 |
parents | 0ebb25d333b4 |
children | 1e6e3a07b5f4 |
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" ;