<?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: Delete a file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154540#M901191</link>
    <description>No, rm will not use inode numbers. You coulkd use the find ... -exec rm {} \; without the fr options if it will make you feel better.&lt;BR /&gt;&lt;BR /&gt;Another option is to use the interactive version of rm:&lt;BR /&gt;&lt;BR /&gt;rm -i *a123&lt;BR /&gt;&lt;BR /&gt;That will prompt you for a y/n for each file matching the pattern. As soon as you see your file, answer y to delete it and then you can ctrl-c (or whatever your INTR is set to) to end the rm command.&lt;BR /&gt;</description>
    <pubDate>Wed, 31 Dec 2003 10:36:01 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-12-31T10:36:01Z</dc:date>
    <item>
      <title>Delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154534#M901185</link>
      <description>I have somehow managed to create a file on our unix box without a filename.  So when you list the files in the directory you get the following&lt;BR /&gt;&lt;BR /&gt;file123&lt;BR /&gt;&lt;BR /&gt;file124&lt;BR /&gt;&lt;BR /&gt;How can I remove a file, without a filename?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 31 Dec 2003 09:43:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154534#M901185</guid>
      <dc:creator>Mark Brook</dc:creator>
      <dc:date>2003-12-31T09:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154535#M901186</link>
      <description>Hi,&lt;BR /&gt;tricky if the file has no name. Try to execute ls -b and show us what appears.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K &lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Wed, 31 Dec 2003 09:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154535#M901186</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-12-31T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154536#M901187</link>
      <description>ls -lbi&lt;BR /&gt;&lt;BR /&gt;note down inode no.&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;find . -num inode_no -exec rm -fr {} \;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Dec 2003 09:51:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154536#M901187</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-12-31T09:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154537#M901188</link>
      <description>I have done the ls -lbi and the filename is \ma123.&lt;BR /&gt;&lt;BR /&gt;Wasnt sure about using the find then rm options, since I read what -rf does.  &lt;BR /&gt;&lt;BR /&gt;Can you remove the file using the id number?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 31 Dec 2003 10:26:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154537#M901188</guid>
      <dc:creator>Mark Brook</dc:creator>
      <dc:date>2003-12-31T10:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154538#M901189</link>
      <description>Hi again,&lt;BR /&gt;as RAC says, use the inode number for removing the file. The inode number is the number appearing left of the filename when executing ls -bi. It should be enough if you just do this:&lt;BR /&gt;# cd to the right directory&lt;BR /&gt;# find . -inum &lt;INODENUMBER&gt; -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;which will remove the file having &lt;INODENUMBER&gt; and nothing else.&lt;BR /&gt;It is important to be in the right directory as the inode numbers are only unique within each filesystem!&lt;BR /&gt; &lt;BR /&gt;but it is perhaps a good idea to touch another file (with a name) and practice on that first.&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;/INODENUMBER&gt;&lt;/INODENUMBER&gt;</description>
      <pubDate>Wed, 31 Dec 2003 10:34:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154538#M901189</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-12-31T10:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154539#M901190</link>
      <description>Nope&lt;BR /&gt;&lt;BR /&gt;You need the file name&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Ste</description>
      <pubDate>Wed, 31 Dec 2003 10:35:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154539#M901190</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2003-12-31T10:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154540#M901191</link>
      <description>No, rm will not use inode numbers. You coulkd use the find ... -exec rm {} \; without the fr options if it will make you feel better.&lt;BR /&gt;&lt;BR /&gt;Another option is to use the interactive version of rm:&lt;BR /&gt;&lt;BR /&gt;rm -i *a123&lt;BR /&gt;&lt;BR /&gt;That will prompt you for a y/n for each file matching the pattern. As soon as you see your file, answer y to delete it and then you can ctrl-c (or whatever your INTR is set to) to end the rm command.&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Dec 2003 10:36:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154540#M901191</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-12-31T10:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154541#M901192</link>
      <description>what if you used rm -i *</description>
      <pubDate>Wed, 31 Dec 2003 11:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154541#M901192</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2003-12-31T11:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154542#M901193</link>
      <description>Try this:&lt;BR /&gt;ls &amp;gt; list.txt&lt;BR /&gt;then vi list.txt and remove all lines except of your 'blank' filename, then&lt;BR /&gt;rm `cat list.txt`</description>
      <pubDate>Wed, 31 Dec 2003 12:35:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delete-a-file/m-p/3154542#M901193</guid>
      <dc:creator>Vitek Pepas</dc:creator>
      <dc:date>2003-12-31T12:35:55Z</dc:date>
    </item>
  </channel>
</rss>

