mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-05 20:11:14 +08:00
* Update README.md * Add files via upload update config * Add files via upload update script
11 lines
235 B
Bash
11 lines
235 B
Bash
#!/usr/bin/env bash
|
|
#input:[10023,2323,3434]
|
|
#output:10023 2323 3434
|
|
list_to_string(){
|
|
ports_list=$*
|
|
sub_s1=`echo $ports_list | sed 's/ //g'`
|
|
sub_s2=${sub_s1//,/ }
|
|
sub_s3=${sub_s2#*[}
|
|
sub_s4=${sub_s3%]*}
|
|
ports_array=$sub_s4
|
|
} |