title: Bash reading users y/n answer does not work (read command inside while loop reading find output)
body: <p>I have a problem here. Seems like my Bash script is ignoring everything that is between <code>do</code> and <code>done</code>. Don't know why, maybe you will see the problem. Thanks in advance.</p>
  
  <pre><code>katalogas=$1
  find $katalogas -type f -mtime +3 | while read $failai
  do
  read -p "Run command $foo? [yn]" answer
  if [[ $answer = y ]] ; then
    rm $failai
  fi
  done
  </code></pre>