티스토리 뷰
728x90
countries=$(cat)
countries+=( "${countries[@]}" "${countries[@]}" )
echo ${countries[@]}
https://stackoverflow.com/questions/31143874/how-to-concatenate-arrays-in-bash
How to concatenate arrays in bash?
I am a new to Bash. I have an array taking input from standard input. I have to concatenate itself twice. Say, I have the following elements in the array: Namibia Nauru Nepal Netherlands NewZealand
stackoverflow.com
728x90
'공부' 카테고리의 다른 글
[swagger] custom path, custom api-docs (0) | 2022.06.20 |
---|---|
[gradle] custom path --settings-file ../package/settings.gradle.kts; custom sub modules (0) | 2022.06.20 |
[Shell] concat string arrays (0) | 2022.06.20 |
[java] org.apache.commons.lang3.CharEncoding.UTF_8 (0) | 2022.06.20 |
[kotlin] avroUtils (/avsc) (0) | 2022.06.20 |
[kotlin] merge json (0) | 2022.06.20 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- 142,688
- Today
- 14
- Yesterday
- 219
TAG
- 개리마커스
- 클루지
- 연애학개론
- Bot
- follower
- wlw
- 어떻게 능력을 보여줄 것인가?
- 인스타그램
- 김달
- COUNT
- Kluge
- 유투브
- 책그림
- 팔로워 수 세기
- 메디파크 내과 전문의 의학박사 김영수