comparison bin/# @ 10479:f0f99c1c5cd5

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