<?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 find . -inum 3232 -exec rm -i {} \; in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968521#M101709</link>
    <description>I am executing this command. &lt;BR /&gt;I am expecting it to ask me whethere or not to delete the file. But, this is what I am getting.&lt;BR /&gt;&lt;BR /&gt;# ls -i&lt;BR /&gt;3232 -l&lt;BR /&gt;&lt;BR /&gt;# find . -inum 3232 -exec rm -i {} \;&lt;BR /&gt;rm: remove regular file `./-l'? #&lt;BR /&gt;&lt;BR /&gt;As you can see, it is directly showing next command prompt without waiting for me to provide any input.</description>
    <pubDate>Tue, 21 Mar 2006 05:16:52 GMT</pubDate>
    <dc:creator>Prasad Joshi</dc:creator>
    <dc:date>2006-03-21T05:16:52Z</dc:date>
    <item>
      <title>find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968521#M101709</link>
      <description>I am executing this command. &lt;BR /&gt;I am expecting it to ask me whethere or not to delete the file. But, this is what I am getting.&lt;BR /&gt;&lt;BR /&gt;# ls -i&lt;BR /&gt;3232 -l&lt;BR /&gt;&lt;BR /&gt;# find . -inum 3232 -exec rm -i {} \;&lt;BR /&gt;rm: remove regular file `./-l'? #&lt;BR /&gt;&lt;BR /&gt;As you can see, it is directly showing next command prompt without waiting for me to provide any input.</description>
      <pubDate>Tue, 21 Mar 2006 05:16:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968521#M101709</guid>
      <dc:creator>Prasad Joshi</dc:creator>
      <dc:date>2006-03-21T05:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968522#M101710</link>
      <description>Prasad,&lt;BR /&gt;&lt;BR /&gt;try this,&lt;BR /&gt;&lt;BR /&gt;# ls -i&lt;BR /&gt;11521 -l&lt;BR /&gt;# find . -inum 11521&lt;BR /&gt;./-l&lt;BR /&gt;# find . -inum 11521 -xdev -exec mv {} rj \;&lt;BR /&gt;# ls&lt;BR /&gt;rj&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 21 Mar 2006 05:22:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968522#M101710</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2006-03-21T05:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968523#M101711</link>
      <description>maybe you could try something like:&lt;BR /&gt;&lt;BR /&gt;for file in `find . -inum 3232`; do&lt;BR /&gt;rm -i $file&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Mar 2006 05:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968523#M101711</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2006-03-21T05:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968524#M101712</link>
      <description>What shell?? It is working fine for me. Try following.&lt;BR /&gt;&lt;BR /&gt;find . -inum 3232 -exec rm -i "{}" \;</description>
      <pubDate>Tue, 21 Mar 2006 05:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968524#M101712</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-03-21T05:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968525#M101713</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Why not using directly :&lt;BR /&gt;&lt;BR /&gt;find . -inum 3232 -ok rm {} \;&lt;BR /&gt;&lt;BR /&gt;normally it should prompt you for accepting or not the command. look at the man page.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Pat</description>
      <pubDate>Tue, 21 Mar 2006 05:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968525#M101713</guid>
      <dc:creator>Patrice Le Guyader</dc:creator>
      <dc:date>2006-03-21T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968526#M101714</link>
      <description>Hello Prasad, &lt;BR /&gt;&lt;BR /&gt;You can do this way, &lt;BR /&gt;&lt;BR /&gt;# cat test.sh &lt;BR /&gt;&lt;BR /&gt;for remove_file in `ind . -inum 3232`&lt;BR /&gt;do &lt;BR /&gt;&lt;BR /&gt;rm -i $remove_file&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;# chmod 755 test.sh &lt;BR /&gt;# ./test.sh &lt;BR /&gt;&lt;BR /&gt;-Arun &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Mar 2006 05:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968526#M101714</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-03-21T05:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968527#M101715</link>
      <description>Simply as,&lt;BR /&gt;&lt;BR /&gt;# rm -i `find . -inum 3232`&lt;BR /&gt;&lt;BR /&gt;will help you out.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Tue, 21 Mar 2006 05:30:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968527#M101715</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-03-21T05:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968528#M101716</link>
      <description>Hi  Robert-Jan Goossens,&lt;BR /&gt;&lt;BR /&gt;I tried this.&lt;BR /&gt;&lt;BR /&gt;# find . -inum 2275 -xdev -exec mv {} rj \;&lt;BR /&gt;&lt;BR /&gt;find: warning: you have specified the -xdev option after a non-option argument -inum, but options are not positional (-xdev affects tests specified before it as well as those specified after it).  Please specify options before other arguments.&lt;BR /&gt;&lt;BR /&gt;# ls&lt;BR /&gt;rj&lt;BR /&gt;&lt;BR /&gt;It seems it is working but, giving some warning messgaes.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Mar 2006 05:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968528#M101716</guid>
      <dc:creator>Prasad Joshi</dc:creator>
      <dc:date>2006-03-21T05:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968529#M101717</link>
      <description>Warnign message is OK. You were running into problem beause, you file had a "-" as char in it. So first moving it to another file and then removing it.</description>
      <pubDate>Tue, 21 Mar 2006 05:44:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968529#M101717</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-03-21T05:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968530#M101718</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks for instant replay.&lt;BR /&gt;&lt;BR /&gt;The same can be accomplished with&lt;BR /&gt;&lt;BR /&gt;1. for f in `find . -inum 2275`&lt;BR /&gt;   do&lt;BR /&gt;      rm -i $f&lt;BR /&gt;   done&lt;BR /&gt;&lt;BR /&gt;2. rm -i `find . -inum 3232`&lt;BR /&gt;&lt;BR /&gt;3. find . -inum 3232 -ok rm {} \;&lt;BR /&gt;&lt;BR /&gt;4. find . -inum 3232 -xdev -exec mv {} rj\;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Tue, 21 Mar 2006 05:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968530#M101718</guid>
      <dc:creator>Prasad Joshi</dc:creator>
      <dc:date>2006-03-21T05:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968531#M101719</link>
      <description>I forgot &lt;BR /&gt;&lt;BR /&gt;6. rm ./-l&lt;BR /&gt;&lt;BR /&gt;7. rm $PWD/-l&lt;BR /&gt;&lt;BR /&gt;Would also work.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Tue, 21 Mar 2006 05:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968531#M101719</guid>
      <dc:creator>Prasad Joshi</dc:creator>
      <dc:date>2006-03-21T05:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968532#M101720</link>
      <description>Be VERY careful with that find command.  IIRC inode numbers are only unique within a given filesystem.  If there is more than one filesystem below "." you may remove more files than you expected.&lt;BR /&gt;&lt;BR /&gt;I believe there is an option to find to tell it to not cross filesystem boundaries.  If so, it would probably be a very good idea to add that.</description>
      <pubDate>Tue, 21 Mar 2006 21:04:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968532#M101720</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2006-03-21T21:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: find . -inum 3232 -exec rm -i {} \;</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968533#M101721</link>
      <description>Hi rick,&lt;BR /&gt;&lt;BR /&gt;Thanks "rick" for your suggestion. I will be carefull from onwards.&lt;BR /&gt;&lt;BR /&gt;You deserve 10 pts, but i can't give them, as i have closed thread.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;Prasad.</description>
      <pubDate>Wed, 22 Mar 2006 02:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-inum-3232-exec-rm-i/m-p/4968533#M101721</guid>
      <dc:creator>Prasad Joshi</dc:creator>
      <dc:date>2006-03-22T02:33:53Z</dc:date>
    </item>
  </channel>
</rss>

