greycat 1309287632 learn http://mywiki.wooledge.org/DontReadLinesWithFor
kerframil 1514273602 forget
kerframil 1514273608 learn #redirect for`
greycat 1535043606 forget
greycat 1535043608 learn https://mywiki.wooledge.org/DontReadLinesWithFor ... "for" is for iterating arguments/arrays, not strings. Never do: for x in $(cat file), or for x in $var; instead, use a glob (*.txt), an array ("${hosts[@]}") or a while-read loop. See also https://mywiki.wooledge.org/BashPitfalls#pf1