title: How to remove file with special characters?
body: <p>I have a weird file on a Unix filesystem. It seems to have some special characters in the file name, but I've not been able to remove it. Even if I don't write the name directly in the <code>rm</code> command (and I do <code>ls | rm</code> instead), I get an error that the file doesn't exist. Below some commands that I've tried after a few searches on the internet, in order to debug the issue. </p>
  
  <p>Do you have any suggestions on how to remove it? The system is AIX 7.1. I've tried with <code>rm</code> and a <code>perl</code> script too (simply listing all files and deleting everything from the folder), and none worked. I can't move the folder to <code>/tmp</code> either, I get the same error.</p>
  
  <p>Thanks!</p>
  
  <pre><code>[root@server] ls -1b | od -bc
  0000000  342 134 062 060 060 134 062 062 063 012
             ▒   \   2   0   0   \   2   2   3  \n
  0000012
  [root@server]$ ls -li
  ls: 0653-341 The file ./– does not exist.
  total 0
  [root@server]$ ls
  –
  [root@server]$ ls | od -bc
  0000000  342 200 223 012
             ▒ 200 223  \n
  0000004
  [root@server]$ rm *
  rm: –: A file or directory in the path name does not exist.
  </code></pre>
  
  <p><strong><em>Screenshot</em></strong></p>
  
  <p><img src="https://i.stack.imgur.com/kTGjf.png" alt="rm failure"></p>