<?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: Deleting an archive with an space in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949908#M102064</link>
    <description>Hi Sanjay, thanks for link&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=953425" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=953425&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and Geoff Wild, thanks for link &lt;A href="http://www.sas.upenn.edu/computing/help/Unix/special_char.html" target="_blank"&gt;http://www.sas.upenn.edu/computing/help/Unix/special_char.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks, is very interesting this site !!!&lt;BR /&gt;&lt;BR /&gt;:0D&lt;BR /&gt;Manuales.</description>
    <pubDate>Thu, 13 Apr 2006 17:24:07 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2006-04-13T17:24:07Z</dc:date>
    <item>
      <title>Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949890#M102046</link>
      <description>Hi ....&lt;BR /&gt;how can i delete a file which contains an space ?&lt;BR /&gt;For example: there is a file named &lt;BR /&gt;root@user1&amp;gt; ls -1&lt;BR /&gt;log commands.txt&lt;BR /&gt;name of programs.txt&lt;BR /&gt;book to learn spanish.txt&lt;BR /&gt;root@user1&amp;gt; &lt;BR /&gt;If i aply: rm log* it can not deleted&lt;BR /&gt;how can i delete them?&lt;BR /&gt;&lt;BR /&gt;Thanks, Manuales.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jan 2006 11:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949890#M102046</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-01-03T11:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949891#M102047</link>
      <description>Put quotes around the file name:&lt;BR /&gt;&lt;BR /&gt;rm "file name"</description>
      <pubDate>Tue, 03 Jan 2006 11:32:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949891#M102047</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-01-03T11:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949892#M102048</link>
      <description>Simply put the name in quotes, like&lt;BR /&gt;&lt;BR /&gt;"the name.log"&lt;BR /&gt;&lt;BR /&gt;should work.</description>
      <pubDate>Tue, 03 Jan 2006 11:32:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949892#M102048</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-01-03T11:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949893#M102049</link>
      <description>rm log[[:blank:]]*.txt&lt;BR /&gt;&lt;BR /&gt;Will deal with more than one space, or tab between the "log" part of the name and the remainder.</description>
      <pubDate>Tue, 03 Jan 2006 11:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949893#M102049</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2006-01-03T11:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949894#M102050</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;A general variation of this problem is to handle a file with special, non-printing characters as well as embedded spaces.  Here's one way to search-and-destroy those:&lt;BR /&gt;&lt;BR /&gt;# cd filesystem&lt;BR /&gt;# find . -xdev name "bad*" -exec ls -li {} \;&lt;BR /&gt;&lt;BR /&gt;(or):&lt;BR /&gt;&lt;BR /&gt;# ls -ilb . #...in place of the above 'find'&lt;BR /&gt;&lt;BR /&gt;Either the 'find' or the 'ls' alone will expose the inode number of the file in question.  Now use it to delete the file, like this:&lt;BR /&gt;&lt;BR /&gt;# find . -inum 152 -xdev -exec rm -i {} \;&lt;BR /&gt;&lt;BR /&gt;REMEMBER that an inode number is only unique WITHIN a filesystem!  Using an interactive 'rm' is always a safety net.  The '-xdev' option of 'find' also insures that you do NOT cross mountpoints (filesystems).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 Jan 2006 12:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949894#M102050</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-03T12:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949895#M102051</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try some of the suggestion in this question posted in the forum before for a similar situation.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=953425" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=953425&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;regds</description>
      <pubDate>Tue, 03 Jan 2006 12:48:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949895#M102051</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2006-01-03T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949896#M102052</link>
      <description>In the directory where the file exists, type:&lt;BR /&gt;&lt;BR /&gt;ll -i&lt;BR /&gt;&lt;BR /&gt;this will list the inode number in the first column.&lt;BR /&gt;&lt;BR /&gt;Like this:&lt;BR /&gt;&lt;BR /&gt;571217 -rw-r--r--   1 kmo        users            0 Jan  3 12:52 fred&lt;BR /&gt;&lt;BR /&gt;You're file's number will be different then 571217 of course.&lt;BR /&gt;&lt;BR /&gt;With this information, you type:&lt;BR /&gt;&lt;BR /&gt;find . -inum 571217 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Of course, you would replace the 571217 with your inum.&lt;BR /&gt;&lt;BR /&gt;Oz&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jan 2006 12:53:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949896#M102052</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2006-01-03T12:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949897#M102053</link>
      <description>No, any of last recomendations worked.&lt;BR /&gt;&lt;BR /&gt;do you know another one?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 03 Jan 2006 13:06:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949897#M102053</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-01-03T13:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949898#M102054</link>
      <description>Hi (again) Manuales:&lt;BR /&gt;&lt;BR /&gt;What didn't work?  They doing this (as I first suggested):&lt;BR /&gt;&lt;BR /&gt;# cd /tmp&lt;BR /&gt;# touch "book to learn spanish.txt"&lt;BR /&gt;# ls -li /tmp/"book*"&lt;BR /&gt;# find . -xdev -name "book*" -exec ls -li {} \;&lt;BR /&gt;&lt;BR /&gt;...either command shows me 152 as the inode number on my filesystem.  Hence:&lt;BR /&gt;&lt;BR /&gt;# find . -xdev -inum  152 -exec rm -i {} \; &lt;BR /&gt;./book to learn spanish.txt: ? (y/n) y&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 Jan 2006 13:14:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949898#M102054</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-03T13:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949899#M102055</link>
      <description>Hi James, i was refered to Torsten, Stephen and Jeff answer ...&lt;BR /&gt;now, in this moment i'm verifying the others answers ... &lt;BR /&gt;thanks !!!</description>
      <pubDate>Tue, 03 Jan 2006 13:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949899#M102055</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-01-03T13:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949900#M102056</link>
      <description>Hi,&lt;BR /&gt;try rm -i *command*txt and confirm when asked.&lt;BR /&gt;probably rm log* doesn't run because the separator is not a speca but a non printable chars.&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 04 Jan 2006 04:13:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949900#M102056</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-01-04T04:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949901#M102057</link>
      <description>If my recommendation didn't work, then you don;t have spaces between the words making up the file name.&lt;BR /&gt;&lt;BR /&gt;try the following to see non-printtable characters ...&lt;BR /&gt;&lt;BR /&gt;# ll | cat -v&lt;BR /&gt;&lt;BR /&gt;you can match each non-printable character with a '?'</description>
      <pubDate>Wed, 04 Jan 2006 06:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949901#M102057</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2006-01-04T06:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949902#M102058</link>
      <description>Hi ..!!!&lt;BR /&gt;i can't delete the file !!!&lt;BR /&gt;&lt;BR /&gt;the name of the file is: "-sh proceso.log"&lt;BR /&gt;&lt;BR /&gt;how can i do it??&lt;BR /&gt;&lt;BR /&gt;please help !!!&lt;BR /&gt;&lt;BR /&gt;Thanks !!!</description>
      <pubDate>Thu, 05 Jan 2006 14:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949902#M102058</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-01-05T14:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949903#M102059</link>
      <description>rm -- "-sh proceso.log"&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jan 2006 14:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949903#M102059</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2006-01-05T14:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949904#M102060</link>
      <description>Or by per the example in the rm man page:&lt;BR /&gt;&lt;BR /&gt;rm "./-sh proceso.log"</description>
      <pubDate>Thu, 05 Jan 2006 14:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949904#M102060</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-01-05T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949905#M102061</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;Once again, the method I posted is generally applicable to files with *any* special characters.  This includes files beginning with "-".&lt;BR /&gt;&lt;BR /&gt;You can also do:&lt;BR /&gt;&lt;BR /&gt;# touch /tmp/-&lt;BR /&gt;# cd /tmp&lt;BR /&gt;# rm -- -&lt;BR /&gt;&lt;BR /&gt;The "--" syntax says that there are no more switches to a command and what follows is an argument; in this case a filename.&lt;BR /&gt;&lt;BR /&gt;By the way, in my earlies posts, above, I dropped the hyphen form 'xdev'.  The 'find' should read:&lt;BR /&gt;&lt;BR /&gt;# find . -xdev -name "bad*" -exec ls -li {} \&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jan 2006 14:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949905#M102061</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-05T14:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949906#M102062</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;Once again, the method I posted is generally applicable to files with *any* special characters.  This includes files beginning with "-".&lt;BR /&gt;&lt;BR /&gt;You can also do:&lt;BR /&gt;&lt;BR /&gt;# touch /tmp/-&lt;BR /&gt;# cd /tmp&lt;BR /&gt;# rm -- -&lt;BR /&gt;&lt;BR /&gt;The "--" syntax says that there are no more switches to a command and what follows is an argument; in this case a filename.&lt;BR /&gt;&lt;BR /&gt;By the way, in my earlies posts, above, I dropped the hyphen form 'name'.  The 'find' should read:&lt;BR /&gt;&lt;BR /&gt;# find . -xdev -name "bad*" -exec ls -li {} \&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jan 2006 14:46:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949906#M102062</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-05T14:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949907#M102063</link>
      <description>Thanks all friends !!!&lt;BR /&gt;&lt;BR /&gt;it was worked with:&lt;BR /&gt;rm -- "-sh proceso.log"&lt;BR /&gt;&lt;BR /&gt;Thanks !!!&lt;BR /&gt;Manuales.</description>
      <pubDate>Thu, 05 Jan 2006 15:26:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949907#M102063</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-01-05T15:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an archive with an space</title>
      <link>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949908#M102064</link>
      <description>Hi Sanjay, thanks for link&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=953425" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=953425&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and Geoff Wild, thanks for link &lt;A href="http://www.sas.upenn.edu/computing/help/Unix/special_char.html" target="_blank"&gt;http://www.sas.upenn.edu/computing/help/Unix/special_char.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks, is very interesting this site !!!&lt;BR /&gt;&lt;BR /&gt;:0D&lt;BR /&gt;Manuales.</description>
      <pubDate>Thu, 13 Apr 2006 17:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/deleting-an-archive-with-an-space/m-p/4949908#M102064</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-04-13T17:24:07Z</dc:date>
    </item>
  </channel>
</rss>

