<?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 Weird directory entry in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209311#M793230</link>
    <description>Can anyone help explain this entry in a directory on one of my servers:&lt;BR /&gt;&lt;BR /&gt;-rwxrwxr-x   1 cyborg     cyborg           7 Oct 11  2002 file04.NANAC2&lt;BR /&gt;-rwxrwxr-x   1 cyborg     cyborg          14 Jul 25  2001 file04.NANAC2&lt;BR /&gt;RDRDG2&lt;BR /&gt;-rwxrwxr-x   1 cyborg     cyborg           7 Jul 25  2001 file04.NANAT1&lt;BR /&gt;&lt;BR /&gt;It's the RDRDG2 I'm worried about. It was brought to my attention by a job I run every night to do a scp of these files. &lt;BR /&gt;This is the error message I'm getting:&lt;BR /&gt;&lt;BR /&gt;"RDRDG2: skipping, filename contains a newline"&lt;BR /&gt;&lt;BR /&gt;basil:/cyb45/test/params&amp;gt;file RDRDG2&lt;BR /&gt;RDRDG2:         cannot open</description>
    <pubDate>Thu, 04 Mar 2004 08:31:26 GMT</pubDate>
    <dc:creator>Robin King_1</dc:creator>
    <dc:date>2004-03-04T08:31:26Z</dc:date>
    <item>
      <title>Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209311#M793230</link>
      <description>Can anyone help explain this entry in a directory on one of my servers:&lt;BR /&gt;&lt;BR /&gt;-rwxrwxr-x   1 cyborg     cyborg           7 Oct 11  2002 file04.NANAC2&lt;BR /&gt;-rwxrwxr-x   1 cyborg     cyborg          14 Jul 25  2001 file04.NANAC2&lt;BR /&gt;RDRDG2&lt;BR /&gt;-rwxrwxr-x   1 cyborg     cyborg           7 Jul 25  2001 file04.NANAT1&lt;BR /&gt;&lt;BR /&gt;It's the RDRDG2 I'm worried about. It was brought to my attention by a job I run every night to do a scp of these files. &lt;BR /&gt;This is the error message I'm getting:&lt;BR /&gt;&lt;BR /&gt;"RDRDG2: skipping, filename contains a newline"&lt;BR /&gt;&lt;BR /&gt;basil:/cyb45/test/params&amp;gt;file RDRDG2&lt;BR /&gt;RDRDG2:         cannot open</description>
      <pubDate>Thu, 04 Mar 2004 08:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209311#M793230</guid>
      <dc:creator>Robin King_1</dc:creator>
      <dc:date>2004-03-04T08:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209312#M793231</link>
      <description>The filename is actually:&lt;BR /&gt;&lt;BR /&gt;"file04.NANAC2                    RDRDG2"&lt;BR /&gt;&lt;BR /&gt;You're seeing an effect of a line-wrap on your display.</description>
      <pubDate>Thu, 04 Mar 2004 08:39:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209312#M793231</guid>
      <dc:creator>Jakes Louw</dc:creator>
      <dc:date>2004-03-04T08:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209313#M793232</link>
      <description>looks like you may have had a file created wit a cr character embedded in hte name.&lt;BR /&gt;If you do :&lt;BR /&gt;ls file04.NANANC2*&lt;BR /&gt;what do you get?&lt;BR /&gt;and &lt;BR /&gt;ls file04.NANANC2*2  &lt;BR /&gt;&lt;BR /&gt;If the second command returns the file &lt;BR /&gt;file04.NANAC2&lt;BR /&gt;RDRDG2&lt;BR /&gt;&lt;BR /&gt;then try doing&lt;BR /&gt;mv file04.NANANC2*2 file04.NANANC2_RDRDG2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 08:40:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209313#M793232</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2004-03-04T08:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209314#M793233</link>
      <description>I don't think it is Jakes. An "ls" returns:&lt;BR /&gt;&lt;BR /&gt;file04.NANAC1&lt;BR /&gt;file04.NANAC2&lt;BR /&gt;file04.NANAC2&lt;BR /&gt;RDRDG2&lt;BR /&gt;file04.NANAT1&lt;BR /&gt;file04.NANAT2&lt;BR /&gt;file04.NCNCC1</description>
      <pubDate>Thu, 04 Mar 2004 08:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209314#M793233</guid>
      <dc:creator>Robin King_1</dc:creator>
      <dc:date>2004-03-04T08:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209315#M793234</link>
      <description>One of your filenames has a newline character in it.&lt;BR /&gt; &lt;BR /&gt;If the output you have given above is the exact output from a "ls -l" I would guess the culprit is the file "file04.NANAC2".&lt;BR /&gt; &lt;BR /&gt;If the filename is really "file04.NANAC2&lt;NEWLINE&gt;RDRDG2" you probably want to remove it because you already have a file called file04.NANAC2 which is quite recent.&lt;BR /&gt; &lt;BR /&gt;You could remove your odd file by going &lt;BR /&gt; &lt;BR /&gt;rm -i file04.NANAC2* and entering "y" when it shows you the one with the funny name.&lt;BR /&gt;&lt;/NEWLINE&gt;</description>
      <pubDate>Thu, 04 Mar 2004 08:41:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209315#M793234</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-04T08:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209316#M793235</link>
      <description>Robin,&lt;BR /&gt;&lt;BR /&gt;Could that actually be file04.NANAC2&lt;NEWLINE&gt;RDRDG2?&lt;BR /&gt;&lt;BR /&gt;Check with ll file04.NANAC2*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;/NEWLINE&gt;</description>
      <pubDate>Thu, 04 Mar 2004 08:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209316#M793235</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-03-04T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209317#M793236</link>
      <description>There is special character in that file name.&lt;BR /&gt;&lt;BR /&gt;check that with ll -b or ll|cat -v&lt;BR /&gt;Then do a ll -il and find the inode no of it and then rename the file.&lt;BR /&gt;&lt;BR /&gt;the find syntax is as follows.&lt;BR /&gt;cd /dir where file resides.&lt;BR /&gt;&lt;BR /&gt;find . -inum "inode_no"|while read a;do mv $a file.txt;done&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 04 Mar 2004 08:41:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209317#M793236</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-03-04T08:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209318#M793237</link>
      <description>I suspect your file is actually "file04.NANAC2\nRDRDG2", where "\n" represents the newline character.  Ther emay be other non-printing characters in there too.&lt;BR /&gt;Try "ls -lb" - the "-b" option shows non-printing characters in octal (\n corresponds to \012).&lt;BR /&gt;&lt;BR /&gt;If this is the case, it should be possible to delete it, although you may have to use something other than rm, e.g.&lt;BR /&gt;&lt;BR /&gt;perl -e 'unlink "file04.NANAC2\nRDRG2"'&lt;BR /&gt;&lt;BR /&gt;Anyway - please post ls -lb output.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Alan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 08:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209318#M793237</guid>
      <dc:creator>Alan Turner</dc:creator>
      <dc:date>2004-03-04T08:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209319#M793238</link>
      <description>Spot on Melvyn, thanks&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 08:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209319#M793238</guid>
      <dc:creator>Robin King_1</dc:creator>
      <dc:date>2004-03-04T08:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Weird directory entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209320#M793239</link>
      <description>You can delete as well by using find :&lt;BR /&gt;&lt;BR /&gt;find -inum xxxx -exec rm {} \;</description>
      <pubDate>Thu, 04 Mar 2004 08:46:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-directory-entry/m-p/3209320#M793239</guid>
      <dc:creator>Jakes Louw</dc:creator>
      <dc:date>2004-03-04T08:46:36Z</dc:date>
    </item>
  </channel>
</rss>

