<shachaf> ` mv bin/sedk bin/sled; sedk \'bin/sled//s-sedk-sled-\'
author |
HackBot |
date |
Tue, 31 May 2016 03:57:48 +0000 |
parents |
863f4323bc8c |
children |
679213584739 |
files |
bin/sedk bin/sled |
diffstat |
2 files changed, 1 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/bin/sedk Tue May 31 03:54:14 2016 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-[[ "$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"; }
--- /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"; }