<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: [one-liner]: Copying &amp; Moving Files efficiently with xargs</title>
	<atom:link href="http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/</link>
	<description>Lame Oh Labs .... Linux &#38; Tech! Is there anything else?</description>
	<lastBuildDate>Tue, 22 Jun 2010 19:43:51 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: slmingol</title>
		<link>http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/comment-page-1/#comment-553</link>
		<dc:creator>slmingol</dc:creator>
		<pubDate>Fri, 18 Dec 2009 01:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2745#comment-553</guid>
		<description>That&#039;s a terrific point. Thanks for bringing it up. I&#039;ve gotten out of the habit of using spaces in files &amp; directories but if you run this on a filesystem that does have files with spaces and/or a directory that may include files from a windows system then odds are you may run into files with spaces. Thanks!</description>
		<content:encoded><![CDATA[<p>That&#8217;s a terrific point. Thanks for bringing it up. I&#8217;ve gotten out of the habit of using spaces in files &amp; directories but if you run this on a filesystem that does have files with spaces and/or a directory that may include files from a windows system then odds are you may run into files with spaces. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo</title>
		<link>http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/comment-page-1/#comment-552</link>
		<dc:creator>Rodrigo</dc:creator>
		<pubDate>Thu, 17 Dec 2009 15:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2745#comment-552</guid>
		<description>find . -type f -ctime -1 &#124; xargs cp -t /some/other/directory

theres a problem with that command wich is revealed if you try to copy files with spaces in their names, just add -0 option to xargs

find . -type f -ctime -1 &#124; xargs -0 cp -t /some/other/directory</description>
		<content:encoded><![CDATA[<p>find . -type f -ctime -1 | xargs cp -t /some/other/directory</p>
<p>theres a problem with that command wich is revealed if you try to copy files with spaces in their names, just add -0 option to xargs</p>
<p>find . -type f -ctime -1 | xargs -0 cp -t /some/other/directory</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slmingol</title>
		<link>http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/comment-page-1/#comment-508</link>
		<dc:creator>slmingol</dc:creator>
		<pubDate>Fri, 16 Oct 2009 05:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2745#comment-508</guid>
		<description>Yup know all about find&#039;s -exec switch. The problem with -exec is that it gets called everytime find finds a file. So for example if find finds 10,000 files, it would literally call -exec 10,000 times. This is what I was trying to avoid by leveraging xargs. By using xargs you in effect are minimizing the number of times you&#039;ll be calling the body of what gets called in the -exec argument to find.</description>
		<content:encoded><![CDATA[<p>Yup know all about find&#8217;s -exec switch. The problem with -exec is that it gets called everytime find finds a file. So for example if find finds 10,000 files, it would literally call -exec 10,000 times. This is what I was trying to avoid by leveraging xargs. By using xargs you in effect are minimizing the number of times you&#8217;ll be calling the body of what gets called in the -exec argument to find.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent</title>
		<link>http://www.lamolabs.org/blog/2745/one-liner-copying-moving-files-efficiently-with-xargs/comment-page-1/#comment-507</link>
		<dc:creator>Vincent</dc:creator>
		<pubDate>Thu, 15 Oct 2009 21:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.lamolabs.org/blog/?p=2745#comment-507</guid>
		<description>you should look into the -exec flag in find</description>
		<content:encoded><![CDATA[<p>you should look into the -exec flag in find</p>
]]></content:encoded>
	</item>
</channel>
</rss>
