<?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 How to remove a file which has starts with - (minus/dash) character in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445107#M769355</link>
    <description>How do I remove a file which starts with a - (minus/dash) character?&lt;BR /&gt;&lt;BR /&gt;eg.  filename is -t&lt;BR /&gt;Have tried rm "-t", rm '-t' rm -t&lt;BR /&gt;All give an error message, because it thinks that the dash is a opt/arg flag&lt;BR /&gt;&lt;BR /&gt;Have also tried considered using rm ?t but when doing ls ?t, the wildcard expansion does not seem to be working correctly</description>
    <pubDate>Wed, 13 Sep 2000 13:44:21 GMT</pubDate>
    <dc:creator>John Hickey_1</dc:creator>
    <dc:date>2000-09-13T13:44:21Z</dc:date>
    <item>
      <title>How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445107#M769355</link>
      <description>How do I remove a file which starts with a - (minus/dash) character?&lt;BR /&gt;&lt;BR /&gt;eg.  filename is -t&lt;BR /&gt;Have tried rm "-t", rm '-t' rm -t&lt;BR /&gt;All give an error message, because it thinks that the dash is a opt/arg flag&lt;BR /&gt;&lt;BR /&gt;Have also tried considered using rm ?t but when doing ls ?t, the wildcard expansion does not seem to be working correctly</description>
      <pubDate>Wed, 13 Sep 2000 13:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445107#M769355</guid>
      <dc:creator>John Hickey_1</dc:creator>
      <dc:date>2000-09-13T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445108#M769356</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;simly type:&lt;BR /&gt;rm ./-t&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Wed, 13 Sep 2000 13:46:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445108#M769356</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-09-13T13:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445109#M769357</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;try a rm -t&lt;BR /&gt;&lt;BR /&gt;this works on most "weird" characters in filenames (like * spaces tabs or control chars)&lt;BR /&gt;&lt;BR /&gt;Greetz, Danny.</description>
      <pubDate>Wed, 13 Sep 2000 13:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445109#M769357</guid>
      <dc:creator>Danny Engelbarts</dc:creator>
      <dc:date>2000-09-13T13:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445110#M769358</link>
      <description>&lt;BR /&gt;or use;&lt;BR /&gt;&lt;BR /&gt;rm -- -t</description>
      <pubDate>Wed, 13 Sep 2000 13:48:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445110#M769358</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-09-13T13:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445111#M769359</link>
      <description>The easiest way is to use the '--' construct to say that the list of options is complete:-&lt;BR /&gt;&lt;BR /&gt;rm -- -t</description>
      <pubDate>Wed, 13 Sep 2000 13:49:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445111#M769359</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-13T13:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445112#M769360</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;oookay ... the backslash i typed doesn't show up [sigh] so that was;&lt;BR /&gt;&lt;BR /&gt;rm [backslash]-t&lt;BR /&gt;&lt;BR /&gt;Greetz, Danny.</description>
      <pubDate>Wed, 13 Sep 2000 13:50:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445112#M769360</guid>
      <dc:creator>Danny Engelbarts</dc:creator>
      <dc:date>2000-09-13T13:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445113#M769361</link>
      <description>John:&lt;BR /&gt;&lt;BR /&gt;this question had been answered earlier in the forum... you would have to do:&lt;BR /&gt;&lt;BR /&gt;rm -- -t&lt;BR /&gt;&lt;BR /&gt;cheers.</description>
      <pubDate>Wed, 13 Sep 2000 13:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445113#M769361</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-09-13T13:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445114#M769362</link>
      <description>Just a hint for Danny:&lt;BR /&gt;If you want to post the backslash in your reply type it twice :-)</description>
      <pubDate>Wed, 13 Sep 2000 13:51:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445114#M769362</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-09-13T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445115#M769363</link>
      <description>Here's another little tip...removing files using the instance number, when you can't remove it with normal rm commands. It is something you would need to be very&lt;BR /&gt;careful doing !  But here it is:&lt;BR /&gt;&lt;BR /&gt;cd to where the file is located and type:   ls -i&lt;BR /&gt;&lt;BR /&gt;This will list the files with their corresponding instance number. Now just do a find from where you are and execute the remove for that instance number&lt;BR /&gt;&lt;BR /&gt;find . -inum &lt;XXX&gt; -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Just a thought,&lt;BR /&gt;&lt;/XXX&gt;</description>
      <pubDate>Wed, 13 Sep 2000 14:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445115#M769363</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-09-13T14:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445116#M769364</link>
      <description>Thanks to all for quick responses.&lt;BR /&gt;&lt;BR /&gt;Note that rm \-t does not work, but rm .\-t does work&lt;BR /&gt;(not sure why)</description>
      <pubDate>Wed, 13 Sep 2000 14:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445116#M769364</guid>
      <dc:creator>John Hickey_1</dc:creator>
      <dc:date>2000-09-13T14:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a file which has starts with - (minus/dash) character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445117#M769365</link>
      <description>here you are with links..&lt;BR /&gt;&lt;A href="http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe5810559ff7cd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe5810559ff7cd4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xb1800559ff7cd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xb1800559ff7cd4118fef0090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Wed, 13 Sep 2000 14:29:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-file-which-has-starts-with-minus-dash-character/m-p/2445117#M769365</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-09-13T14:29:20Z</dc:date>
    </item>
  </channel>
</rss>

