<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: removing odd named file containing non-printing characters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6798252#M489073</link>
    <description>&lt;P&gt;&amp;gt;-rw-r--r--&amp;nbsp;&amp;nbsp; 1 root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 540 Sep 29 15:43&amp;nbsp; \177q!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a Del char.&amp;nbsp; So you can simply type: rm -i ?q!&lt;/P&gt;&lt;P&gt;And hopefully there is only one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could use tr(1) to get that Del:&lt;/P&gt;&lt;P&gt;$ rm -i $(echo "Aq!" | tr "A" '\177')&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;$ mv $(echo "Aq!" | tr "A" '\177') bad_file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or look at the tag cloud:&lt;/P&gt;&lt;P&gt;&lt;A href="http://h30499.www3.hp.com/t5/tag/unprintable%20chars/tg-p/category-id/operating_systems" target="_blank"&gt;http://h30499.www3.hp.com/t5/tag/unprintable%20chars/tg-p/category-id/operating_systems&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2015 06:40:14 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2015-10-01T06:40:14Z</dc:date>
    <item>
      <title>removing odd named file containing non-printing characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6797987#M489070</link>
      <description>&lt;P&gt;Good morning ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an odd named filename (q! ) below which was accidentally created through a VI editing session . and which we're now struggling to remove. if i list the 'filename' (inc nonprinting characters)) &amp;nbsp;it displays the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;'filename'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ll -lsqb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-rw-r--r-- &amp;nbsp; 1 root &amp;nbsp; &amp;nbsp; &amp;nbsp; sys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;540 Sep 29 15:43 &amp;nbsp;\177q!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please suggest a &amp;nbsp;method I could employ to safely remove (or rename) this file ? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Paul&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 09:09:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6797987#M489070</guid>
      <dc:creator>Paolo_c</dc:creator>
      <dc:date>2015-09-30T09:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: removing odd named file containing non-printing characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6798036#M489071</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp; If you can tolerate a little interactivity:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rm -i *'q!'&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls *'q!'&lt;BR /&gt;shows only one file, then the "-i" isn't really needed.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] (or rename) [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; That may harder.&amp;nbsp; "mv" has a "-i" option, but (typical of UNIX) it&lt;BR /&gt;has different semantics.&amp;nbsp; If you can find a wildcard expression which&lt;BR /&gt;catches only the target file, then it's easy.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6798036#M489071</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2015-09-30T12:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: removing odd named file containing non-printing characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6798203#M489072</link>
      <description>&lt;P&gt;Another approach is to delete by inode number:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ls -li *q!&lt;/P&gt;&lt;P&gt;4739 ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then use find to locate the file by inode number and perform the rm:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;find . -inum 4739 -exec rm -i {} \;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 21:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6798203#M489072</guid>
      <dc:creator>RJHall</dc:creator>
      <dc:date>2015-09-30T21:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: removing odd named file containing non-printing characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6798252#M489073</link>
      <description>&lt;P&gt;&amp;gt;-rw-r--r--&amp;nbsp;&amp;nbsp; 1 root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 540 Sep 29 15:43&amp;nbsp; \177q!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a Del char.&amp;nbsp; So you can simply type: rm -i ?q!&lt;/P&gt;&lt;P&gt;And hopefully there is only one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could use tr(1) to get that Del:&lt;/P&gt;&lt;P&gt;$ rm -i $(echo "Aq!" | tr "A" '\177')&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;$ mv $(echo "Aq!" | tr "A" '\177') bad_file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or look at the tag cloud:&lt;/P&gt;&lt;P&gt;&lt;A href="http://h30499.www3.hp.com/t5/tag/unprintable%20chars/tg-p/category-id/operating_systems" target="_blank"&gt;http://h30499.www3.hp.com/t5/tag/unprintable%20chars/tg-p/category-id/operating_systems&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 06:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6798252#M489073</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-10-01T06:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: removing odd named file containing non-printing characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6798361#M489075</link>
      <description>&lt;P&gt;many thanks for the feedback provided. &amp;nbsp;I didn't realise that this was a DEL char but the workaround provided &amp;nbsp;worked fine. thanks also to everyone else that provided feedback.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-odd-named-file-containing-non-printing-characters/m-p/6798361#M489075</guid>
      <dc:creator>Paolo_c</dc:creator>
      <dc:date>2015-10-01T14:33:00Z</dc:date>
    </item>
  </channel>
</rss>

