读取行时如何读取变量?
例如:
the_list=$(..code..) while read line do echo $line done < $the_list
./copy.sh: line 25: $the_list: ambiguous redirect
你可以写:
while IFS= read -r line do echo "$line" done <<< "$the_list"