<?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 a file that starts with &amp;quot;-&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845140#M92014</link>
    <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;# rm -i -- -h&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 14 Nov 2002 17:39:33 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-11-14T17:39:33Z</dc:date>
    <item>
      <title>removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845133#M92007</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;   One of my users created a file called "-h".&lt;BR /&gt;When I try to rm it i get, -h unknown option.&lt;BR /&gt;I've tried \-h "-h" and single quotes to no avail. Help!&lt;BR /&gt;&lt;BR /&gt;-john&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Nov 2002 17:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845133#M92007</guid>
      <dc:creator>John Downs_1</dc:creator>
      <dc:date>2002-11-14T17:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845134#M92008</link>
      <description>One way is to list it with its inode number and then use find to remove it.&lt;BR /&gt;# cd &lt;TO-WHERE-THE-FILE-IS&gt;&lt;BR /&gt;# ls -i&lt;BR /&gt;==&amp;gt; Take note of its inode number. Then run ..&lt;BR /&gt;# find . -inum &lt;INODE-NUM&gt; -exec rm -f {} \;&lt;/INODE-NUM&gt;&lt;/TO-WHERE-THE-FILE-IS&gt;</description>
      <pubDate>Thu, 14 Nov 2002 17:29:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845134#M92008</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-11-14T17:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845135#M92009</link>
      <description>rm ./-h&lt;BR /&gt;&lt;BR /&gt;will do.&lt;BR /&gt;&lt;BR /&gt;...Manjeet</description>
      <pubDate>Thu, 14 Nov 2002 17:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845135#M92009</guid>
      <dc:creator>Kellogg Unix Team</dc:creator>
      <dc:date>2002-11-14T17:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845136#M92010</link>
      <description>Hi John:&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;# rm -i "*-h*"&lt;BR /&gt;&lt;BR /&gt;...and respond yes or no appropriately.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 Nov 2002 17:33:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845136#M92010</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-14T17:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845137#M92011</link>
      <description>use file manager from x terminal&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Nov 2002 17:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845137#M92011</guid>
      <dc:creator>Domenico_5</dc:creator>
      <dc:date>2002-11-14T17:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845138#M92012</link>
      <description>and finally you may want to see the content of the file before you delete it ?&lt;BR /&gt;more -- -h&lt;BR /&gt;or rename it&lt;BR /&gt;mv -- -h newfilename&lt;BR /&gt;&lt;BR /&gt;Jean-Luc&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Nov 2002 17:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845138#M92012</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2002-11-14T17:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845139#M92013</link>
      <description>hei guys!!!!!&lt;BR /&gt;&lt;BR /&gt;4 answer, 4 correct answer and all different!!!!!!!!!!!&lt;BR /&gt;&lt;BR /&gt;goood!!!!</description>
      <pubDate>Thu, 14 Nov 2002 17:38:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845139#M92013</guid>
      <dc:creator>Domenico_5</dc:creator>
      <dc:date>2002-11-14T17:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845140#M92014</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;# rm -i -- -h&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 Nov 2002 17:39:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845140#M92014</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-14T17:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845141#M92015</link>
      <description>And a fifth...&lt;BR /&gt;&lt;BR /&gt;rm -- -h&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Thu, 14 Nov 2002 17:39:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845141#M92015</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-11-14T17:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845142#M92016</link>
      <description>john &lt;BR /&gt;&lt;BR /&gt;A strawberry on a pie</description>
      <pubDate>Thu, 14 Nov 2002 17:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845142#M92016</guid>
      <dc:creator>Domenico_5</dc:creator>
      <dc:date>2002-11-14T17:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845143#M92017</link>
      <description>&lt;BR /&gt;   Well, either you guys have been doing this to long or i haven't been doing it long enough.&lt;BR /&gt;I tried rm ./-h, fewest charaters to type, and it worked. The next time I'll one of the other solutions.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;-john</description>
      <pubDate>Thu, 14 Nov 2002 17:50:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845143#M92017</guid>
      <dc:creator>John Downs_1</dc:creator>
      <dc:date>2002-11-14T17:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: removing a file that starts with "-"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845144#M92018</link>
      <description>Hi (again) John:&lt;BR /&gt;&lt;BR /&gt;/No_Points_Please/&lt;BR /&gt;&lt;BR /&gt;I'm not sure what the h*ll I was thinking with my first suggestion of "*-h*" but that clearly wonn't work!  Fortunately my second offering was correct and preferred and you gave me points for that!  For future readers:&lt;BR /&gt;&lt;BR /&gt;In general, two consecutive hyphens single the end of flags for well-behaved commands.  At your leisure:&lt;BR /&gt;&lt;BR /&gt;# touch -- -h&lt;BR /&gt;# ls -- -h&lt;BR /&gt;# mv -- -h -hh&lt;BR /&gt;# ls -- -h&lt;BR /&gt;# ls -- -h*&lt;BR /&gt;# set -f #...disable globbing...&lt;BR /&gt;# ls -- -h*&lt;BR /&gt;# set +f #...enable globbing...&lt;BR /&gt;# rm -i -- -h*&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 Nov 2002 18:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-a-file-that-starts-with-quot-quot/m-p/2845144#M92018</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-14T18:28:30Z</dc:date>
    </item>
  </channel>
</rss>

