原文:shell 拆分字符串成數組 放入數組

...

2020-06-12 18:46 0 3087 推薦指數:

查看詳情

shell字符串分割成數組

代碼:test.sh shell編程中,經常需要將由特定分割符分割的字符串分割成數組,多數情況下我們首先會想到使用awk 但是實際上用shell自帶的分割數組功能會更方便。假如 a="one,two ...

Wed Jun 09 23:13:00 CST 2021 0 5795
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM