shell腳本標準輸出賦值給變量

方案一:bash #!/bin/bash string="hello world!" result=$(echo $string) echo $result 方案二:code #!/bin/bash string="hello world!" result=`echo $string` echo $result
相關文章
相關標籤/搜索