lhunath 1290414106 learn Don't do this: for x in $(command) or `command`. for is used for iterating arguments, not output strings. Instead, use a while read loop: while read line; do ..; done < <(command) lhunath 1294813765 forget lhunath 1294813779 learn #redirect for$