<oerjan> ` mv bin/{msg,#}
author |
HackBot |
date |
Tue, 21 Mar 2017 15:19:02 +0000 |
parents |
ecbeb3452e13 |
children |
f0f99c1c5cd5 |
files |
bin/# bin/msg |
diffstat |
2 files changed, 4 insertions(+), 4 deletions(-)
[+]
|
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/# Tue Mar 21 15:19:02 2017 +0000
@@ -0,0 +1,4 @@
+sep='//`'
+[[ "$1" == ?*"$sep"* ]] || { echo 'Usage: `msg <comment>'"$sep"'<command>' >&2 ; exit 1; }
+command="${1#*$sep}"
+"${command%% *}" "${command#* }"
--- a/bin/msg Tue Mar 21 15:13:54 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-sep='//`'
-[[ "$1" == ?*"$sep"* ]] || { echo 'Usage: `msg <comment>'"$sep"'<command>' >&2 ; exit 1; }
-command="${1#*$sep}"
-"${command%% *}" "${command#* }"