title: shell says "command not found" error for data echoed to a telnet command
body: <pre><code>find /data/backup/ -name 20140202* -exec awk -F"|" '$23!=0 {print"|"$14"|"$23}' {}       
  \; &gt; Day1.txt
  
  host='XX.XX.XX.XX'
  user='root'
  passwd='root'
  (
  echo "$user"
  echo "$passwd"
  echo "cd /data/"
  echo "find /data/backup/ -name rec20140202* -exec awk -F"|" '$23!=0 {print"|"$14"|"$23}'  
  {} \; &gt; remoteDay1.txt"
  echo "exit" )| telnet "$host"
  </code></pre>
  
  <p>In the above code fragment first find command is working fine but second find command (inside telnet part) is resulting in the following error:</p>
  
  <hr>
  
  <pre><code>testnew.sh: line 27: '3!=0 {print: command not found
  testnew.sh: line 27: 4: command not found
  testnew.sh: line 27: 3: command not found
  testnew.sh: line 27: }' {} \; &gt; remoteDay1.txt: command not found
  Connection closed by foreign host.
  </code></pre>
  
  <hr>
  
  <p>Pls help</p>