且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在bash中从数组中回显所有值

更新时间:2022-11-13 23:39:41

使用*作为下标将数组扩展为单个单词:

Use * as the subscript to expand the array as a single word:

"${tabSuppr[*]}"

有关说明,请参见man bash.