view bin/sled @ 8750:8934300cd6d1

<b_jonas> `` perl -i -pe \'s/("\\x241)/-- $1/\' bin/random-card
author HackBot
date Tue, 05 Jul 2016 13:39:32 +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"; }