lhunath 1294813762 learn Don't do this: for x in $(command) or `command` or $var. for is used for iterating arguments, not (output) strings. Instead, use an array variable ("${array[@]}") or a while loop: while read line; do ..; done < <(command) e36freak 1309287873 forget e36freak 1309287891 learn Don't do this: for x in $(command) or `command` or $var. for is used for iterating arguments, not (output) strings. Instead, use an array variable ("${array[@]}") or a while loop: while read line; do ..; done < <(command) e36freak 1309287899 forget e36freak 1309287963 learn Don't do this: for x in $(command) or `command` or $var. for is used for iterating arguments, not (output) strings. Instead, see http://mywiki.wooledge.org/DontReadLinesWithFor and http://mywiki.wooledge.org/BashFAQ/001 lhunath 1315637673 forget lhunath 1315637768 learn Never do this: for x in $(command) or `command` or $var. for-in is used for iterating arguments, not (output) strings. See http://mywiki.wooledge.org/BashSheet#Arrays http://mywiki.wooledge.org/DontReadLinesWithFor http://mywiki.wooledge.org/BashFAQ/001 lhunath 1315637786 forget lhunath 1315637806 learn Never do this: for x in $(command) or `command` or $var. for-in is used for iterating arguments, not (output) strings. Instead, use arrays or a while-read loop. See http://mywiki.wooledge.org/BashSheet#Arrays http://mywiki.wooledge.org/DontReadLinesWithFor http://mywiki.wooledge.org/BashFAQ/001 lhunath 1358284522 forget lhunath 1358284564 learn Never do this: for x in $(command) or `command` or $var. for-in is used for iterating arguments, not (output) strings. Instead, use arrays or a while-read loop. See http://mywiki.wooledge.org/BashPitfalls#pf1 lhunath 1358284638 forget lhunath 1358284656 learn Never do this: for x in $(command) or `command` or $var. for-in is used for iterating arguments, not (output) strings. Instead, use arrays or a while-read loop. See http://mywiki.wooledge.org/BashPitfalls#pf1 and http://mywiki.wooledge.org/DontReadLinesWithFor lhunath 1377533390 forget lhunath 1377533488 learn Never do this: for x in $(command) or `command` or $var. for-in is used for iterating arguments, not (output) strings. Instead, use a glob (eg. *.txt), arrays (eg. "${names[@]}") or a while-read loop (eg. while read -r line). See http://mywiki.wooledge.org/BashPitfalls#pf1 and http://mywiki.wooledge.org/DontReadLinesWithFor