<?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: Tarring up JUST the dotfiles</title>
	<atom:link href="http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/</link>
	<description>Tech notes from a Systems Administrator</description>
	<lastBuildDate>Wed, 25 Aug 2010 14:49:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: slava_dp</title>
		<link>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/comment-page-1/#comment-478</link>
		<dc:creator>slava_dp</dc:creator>
		<pubDate>Thu, 19 Nov 2009 15:51:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=210#comment-478</guid>
		<description>I&#039;ve been looking for a firm solution to the dotfile selection problem for a while.
ls .??* fails on a file named .a
ls .[^.]* fails on a file named ..file
ls -A &#124; egrep &#039;^\.&#039; will fail if a file name contains a linebreak or other funky characters (yes it can).

The only proper solution (as per #bash@freenode guys) is this:
set +o histexpand #disables special &quot;!&quot; interpretation
shopt -s extglob #enables extended bash globs
echo .!(&#124;.) #gives you all your dotfiles, excluding &quot;.&quot; and &quot;..&quot;, and without mangling anything.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been looking for a firm solution to the dotfile selection problem for a while.<br />
ls .??* fails on a file named .a<br />
ls .[^.]* fails on a file named ..file<br />
ls -A | egrep &#8216;^\.&#8217; will fail if a file name contains a linebreak or other funky characters (yes it can).</p>
<p>The only proper solution (as per #bash@freenode guys) is this:<br />
set +o histexpand #disables special &#8220;!&#8221; interpretation<br />
shopt -s extglob #enables extended bash globs<br />
echo .!(|.) #gives you all your dotfiles, excluding &#8220;.&#8221; and &#8220;..&#8221;, and without mangling anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zordrak</title>
		<link>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/comment-page-1/#comment-435</link>
		<dc:creator>Zordrak</dc:creator>
		<pubDate>Sat, 14 Nov 2009 10:17:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=210#comment-435</guid>
		<description>&lt;a href=&quot;#comment-422&quot; rel=&quot;nofollow&quot;&gt;@mosk0bit &lt;/a&gt; 
Thanks. Didn&#039;t know about that one.</description>
		<content:encoded><![CDATA[<p><a href="#comment-422" rel="nofollow">@mosk0bit </a><br />
Thanks. Didn&#8217;t know about that one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mosk0bit</title>
		<link>http://blog.tpa.me.uk/2009/09/29/tarring-up-just-the-dotfiles/comment-page-1/#comment-422</link>
		<dc:creator>mosk0bit</dc:creator>
		<pubDate>Fri, 13 Nov 2009 21:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=210#comment-422</guid>
		<description>Perhaps, a simpler way is:

tar cvJf filename.tar.xz .??*</description>
		<content:encoded><![CDATA[<p>Perhaps, a simpler way is:</p>
<p>tar cvJf filename.tar.xz .??*</p>
]]></content:encoded>
	</item>
</channel>
</rss>
