Created
May 9, 2017 00:56
-
-
Save linhxhust/dd86c3e4b99c3e2d7b043776aeb6cb0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cdr_array=( | |
"rec:/path/to/cdr/rec" | |
"sms:/path/to/cdr/sms" | |
"mgr:/path/to/cdr/mgr" | |
"vou:/path/to/cdr/vou" | |
) | |
for cdr in "${cdr_array[@]}" ; do | |
key="${cdr%%:*}" | |
value="${cdr##*:}" | |
printf "cdr_array[%s] => %s\n" "$key" "$value" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment