Mercurial > repo
view bin/sled @ 8903:7fda33974599
<oerjan> le/rn tile shuffling/Tile shuffve games. ly addictie basis of many highling is th
author | HackBot |
---|---|
date | Tue, 09 Aug 2016 23:48:43 +0000 |
parents | c6382f86a76d |
children |
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" && { echo -n "$key//"; cat "$key"; }