comparison bin/# @ 10478:9811fb0aae76

<oerjan> ` mv bin/{msg,#}
author HackBot
date Tue, 21 Mar 2017 15:19:02 +0000
parents bin/msg@3edae8285d40
children f0f99c1c5cd5
comparison
equal deleted inserted replaced
10477:ecbeb3452e13 10478:9811fb0aae76
1 sep='//`'
2 [[ "$1" == ?*"$sep"* ]] || { echo 'Usage: `msg <comment>'"$sep"'<command>' >&2 ; exit 1; }
3 command="${1#*$sep}"
4 "${command%% *}" "${command#* }"