comparison bin/sled @ 9513:ae4d924e677f

<oerjan> sled bin/sled//s/[&][&].*/;/
author HackBot
date Sat, 29 Oct 2016 19:32:53 +0000
parents c989a1669243
children 61719e6e2316
comparison
equal deleted inserted replaced
9512:2f89f6385868 9513:ae4d924e677f
1 [[ "$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"; } 1 [[ "$1" == ?*//* ]] || { echo 'usage: sled file//script'; exit 1; }; key="${1%%//*}"; value="${1#*//}"; [[ -f "$key" ]] || { echo 'Rosebud!'; exit 1; }; sed -i "$value" "$key" ;