Mercurial > repo
view bin/sled @ 11213:ec128aee030a
<b_jonas> `` ln -svf allsets-2017-09-20.txt share/mtg/allsets.txt
author | HackBot |
---|---|
date | Wed, 04 Oct 2017 11:36:52 +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" ;