读取行时如何读取变量?
例如:
the_list=$(..code..) while read line do echo $line done < $the_list
./copy.sh: line 25: $the_list: ambiguous redirect
你可以写:
原文链接:https://www.f2er.com/bash/388308.htmlwhile IFS= read -r line do echo "$line" done <<< "$the_list"