<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sat May 25, 2013 8:32 am by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sat May 25, 2013 8:32 am</pubDate>
  <lastBuildDate>Sat May 25, 2013 8:32 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>RE: Re: RE: Fdupes vs. whitespaces problem!</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=41504#41504</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=10213'&gt;Toallpointswest&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 27, 2007 10:33 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Tried it on another directory, and I have the file list I expected, so I'll try it again.&lt;br /&gt;
&lt;br /&gt;
EDIT: Okay tried it again and, it creates a listing of file names, with a blank line in between each line. I think that the error I'm seeing is rm trying to delete that blank line, as when I re-run fdupes on that directory it finds no dupes, so it is working.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=41504#41504</comments>
                                        <author>Toallpointswest</author>
                                        <pubDate>Tue Mar 27, 2007 10:33 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=41504#41504</guid>
                                      </item>
                                      <item>
                                        <title>RE: Re: RE: Fdupes vs. whitespaces problem!</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=41487#41487</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 27, 2007 4:53 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      More likely that the variable contained something rm didn't like. It should have deleted everything up to the dodgy item, so try &lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;fdupes --recurse --omitfirst &amp;lt;directory&amp;gt; | head&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
to see what comes next.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=41487#41487</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue Mar 27, 2007 4:53 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=41487#41487</guid>
                                      </item>
                                      <item>
                                        <title>Re: RE: Fdupes vs. whitespaces problem!</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=41486#41486</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=10213'&gt;Toallpointswest&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 27, 2007 4:47 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;nelz wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;xargs doesn't handle filenames with spaces at all well. If you replace &quot;| xargs rm&quot; with&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;| while read f; do rm &amp;quot;$f&amp;quot;; done&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt; your spaced put files should be deleted correctly.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
That did something, but now I get:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;rm: cannot remove `':No such file or directory&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
So it looks like it didn't pass the variable correctly</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=41486#41486</comments>
                                        <author>Toallpointswest</author>
                                        <pubDate>Tue Mar 27, 2007 4:47 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=41486#41486</guid>
                                      </item>
                                      <item>
                                        <title>RE: Fdupes vs. whitespaces problem!</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=41476#41476</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 27, 2007 9:27 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      xargs doesn't handle filenames with spaces at all well. If you replace &quot;| xargs rm&quot; with&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;| while read f; do rm &amp;quot;$f&amp;quot;; done&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt; your spaced put files should be deleted correctly.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=41476#41476</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue Mar 27, 2007 9:27 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=41476#41476</guid>
                                      </item>
                                      <item>
                                        <title>RE: Fdupes vs. whitespaces problem!</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=41468#41468</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14151'&gt;Kev1729&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 27, 2007 1:57 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      If you use it with the --delete flag it works fine, else if you are using your own script (or indeed one that came with the mag, shows how much i read it) to delete the files you would need to escape the filenames first.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=41468#41468</comments>
                                        <author>Kev1729</author>
                                        <pubDate>Tue Mar 27, 2007 1:57 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=41468#41468</guid>
                                      </item>
                                      <item>
                                        <title>Fdupes vs. whitespaces problem!</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=41465#41465</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=10213'&gt;Toallpointswest&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 27, 2007 1:06 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I've been trying the fdupes command from this months issue to find and delete duplicate files&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;fdupes --recurse --omitfirst &amp;lt;directory&amp;gt; |xargs rm&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
And every time it comes across a file or pathname with a whitespace in it I get the following error:&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;rm: cannot remove '&amp;lt;file or directory with whitespace&amp;gt;': No such file or directory&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Any ideas how I can get this command to work properly? Thanks!</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=41465#41465</comments>
                                        <author>Toallpointswest</author>
                                        <pubDate>Tue Mar 27, 2007 1:06 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=41465#41465</guid>
                                      </item></channel></rss>