title: why questionmark comes in the end of filename when i create .txt file through shell script?
body: <p>I am writing one shell script in which I am supposed to create 1 text file. When I do this, a question mark comes at the end of file name. what is the reason?</p>
  
  <p>I am trying below methods in bash script.</p>
  
  <p>1) <code>grep ERROR a1* &gt; text.txt</code></p>
  
  <p>2) <code>touch text.txt</code></p>
  
  <p>In both the methods, instead of <code>text.txt</code>, there is a file generated as <code>text.txt?</code></p>
  
  <p>what should I do to overcome this?</p>