<?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: Using xargs</title>
	<atom:link href="http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/</link>
	<description>A Stefan Klopp Weblog</description>
	<lastBuildDate>Mon, 26 Dec 2011 03:08:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: T.J. Crowder</title>
		<link>http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/comment-page-1/#comment-30965</link>
		<dc:creator>T.J. Crowder</dc:creator>
		<pubDate>Thu, 11 Nov 2010 14:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/#comment-30965</guid>
		<description>You&#039;ll run into trouble with find / -name *.mp3 -type f -print &#124; xargs tar -cvzf mp3s.tar.gz if your filenames have any spaces in them. Try changing -print to -print0 and adding -0 to the xargs command.</description>
		<content:encoded><![CDATA[<p>You&#8217;ll run into trouble with find / -name *.mp3 -type f -print | xargs tar -cvzf mp3s.tar.gz if your filenames have any spaces in them. Try changing -print to -print0 and adding -0 to the xargs command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brendon</title>
		<link>http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/comment-page-1/#comment-8284</link>
		<dc:creator>Brendon</dc:creator>
		<pubDate>Wed, 10 Sep 2008 19:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/#comment-8284</guid>
		<description>using xargs + tar is a bad idea. Use tar -T, pax, etc instead. You&#039;ll get into trouble with xargs.</description>
		<content:encoded><![CDATA[<p>using xargs + tar is a bad idea. Use tar -T, pax, etc instead. You&#8217;ll get into trouble with xargs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZZTech</title>
		<link>http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/comment-page-1/#comment-1219</link>
		<dc:creator>ZZTech</dc:creator>
		<pubDate>Sat, 21 Apr 2007 18:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/#comment-1219</guid>
		<description>Be a bit careful of the -c option on tar with xargs - it will restart the tar archive if the argument list (the ls command) is long enough (and you won&#039;t get everything in the tar file that you expect). You can easily avoid this by using the &#039;r&#039; (append) option with tar, though. (You can see http://zztools.blogspot.com for an example).</description>
		<content:encoded><![CDATA[<p>Be a bit careful of the -c option on tar with xargs &#8211; it will restart the tar archive if the argument list (the ls command) is long enough (and you won&#8217;t get everything in the tar file that you expect). You can easily avoid this by using the &#8216;r&#8217; (append) option with tar, though. (You can see <a href="http://zztools.blogspot.com" rel="nofollow">http://zztools.blogspot.com</a> for an example).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/comment-page-1/#comment-107</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 09 Mar 2005 00:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/#comment-107</guid>
		<description>Here is the latest trick I did with xargs:

locate .htaccess &#124;xargs cat &#124;more

What it does is cat every .htaccess file one screen at a time. I needed to do this because I was in search of a rewrite rule that I couldn&#039;t find.</description>
		<content:encoded><![CDATA[<p>Here is the latest trick I did with xargs:</p>
<p>locate .htaccess |xargs cat |more</p>
<p>What it does is cat every .htaccess file one screen at a time. I needed to do this because I was in search of a rewrite rule that I couldn&#8217;t find.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/comment-page-1/#comment-4</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Mon, 10 Jan 2005 19:51:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.kloppmagic.ca/archives/2004/12/21/using-xargs/#comment-4</guid>
		<description>In the following example I am listing all files, then using the first xargs statement I am filtering them by search string then in the second xargs statement I am copying them to a new location. The reason for the double xargs is to get around the problem of: Argument list too long.

ls -1&#124;xargs grep -l &quot;search string&quot;&#124;xargs -n1 -I{} cp &quot;{}&quot; /home/newlocation</description>
		<content:encoded><![CDATA[<p>In the following example I am listing all files, then using the first xargs statement I am filtering them by search string then in the second xargs statement I am copying them to a new location. The reason for the double xargs is to get around the problem of: Argument list too long.</p>
<p>ls -1|xargs grep -l &#8220;search string&#8221;|xargs -n1 -I{} cp &#8220;{}&#8221; /home/newlocation</p>
]]></content:encoded>
	</item>
</channel>
</rss>

