Mercurial > repo
view bin/sled @ 9995:6dafe99af36a
<shachaf> addquote <int-e> fungot is here <fungot> int-e: may cause extreme loss of appetite! may cause severe diarrhea and vomiting!
author | HackBot |
---|---|
date | Sun, 18 Dec 2016 19:05:14 +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" ;