Iterate over the array searching for multiple elements in Bash

后端 未结 0 1729
野的像风
野的像风 2021-01-19 02:10
firstvar="PRIMARY"
secondvar="SECONDARY"
thirdvar="TERTIARY"

array=($firstvar $secondvar $thirdvar)
echo ${array[*]} //prints PRIMARY          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题