Now I have a file_list contains filenames,I wanna copy those files from remote server.<p>Besides, those filenames contains $ character.<p>part of the code<p>if [ ${client} == a ];then
export file_list=$(cat file_list)<p>sudo su - ${client} &lt;&lt;EOF
ssh unica@stalwart &lt;&lt;EOF2<p>file_list=$file_list
src_location=$src_location
echo &quot;$file_list&quot;
while IFS=&#x27;&#x27; read -r line || [[ -n &quot;$line&quot; ]]; do
scp $src_location&#x2F;${line} &#x2F;usr&#x2F;local&#x2F;msp&#x2F;<p>done &lt; &quot;${file_list}&quot;
EOF2
EOF
Could someone help me to make the script work?