📜  bash 一次设置两个变量 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:22.880000             🧑  作者: Mango

代码示例1
# Basic syntax:
read -r variable1 variable2 <<< $(bash command generating two outputs)
# Where:
#    - -r specifies that backslashes should not be handled differently

# Example usage:
read -r var1 var2 <<< $(echo "one two")
echo $var1
--> one
echo $var2
--> two