diff bin/sled @ 8235:1a01adc0d78a

<shachaf> ` mv bin/sedk bin/sled; sedk \'bin/sled//s-sedk-sled-\'
author HackBot
date Tue, 31 May 2016 03:57:48 +0000
parents bin/sedk@863f4323bc8c
children 679213584739
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/sled	Tue May 31 03:57:48 2016 +0000
@@ -0,0 +1,1 @@
+[[ "$1" == ?*//* ]] || { echo 'usage: sedk file//script'; exit 1; }; key="${1%%//*}"; value="${1#*//}"; [[ -f "$key" ]] || exit 1; sed -i "$value" "$key" && { echo -n "$key//"; cat "$key"; }