title: Linux read whitespaces and special characters
body: <p>I want to read with whitespaces and special characters because I need to delete file with the name of that string. I don't know how to deal with "\" and last spaces in read; I am probably doing it wrong.</p>
  
  <pre><code>     while read LINE
    do
      for arg in $LINE
      do  
      if [ "${args}" = "" ]
      then
          args="${args}"
      else
          args="${args}' '"
      fi     
      args="${args}${arg}"
      done
  </code></pre>
  
  <p>I need to do something like that <code>echo sadsad asddsa ;' dsasa  | ./sth.sh | xargs -l rm -f</code></p>
  
  <p>I think that I need to set IFS to "|" but it doesn't work properly. I need to read input end call it.</p>
  
  <p>EDIT: Ok, I think I only need to do something with xargs and sed.</p>
  
  <p>Ok, almost thant I have some errors but I get file name</p>
  
  <pre><code>find  *.txt -print0 | xargs -0 rm -f
  </code></pre>
  
  <p>This works fine for me :). Problem probably solved.</p>