<?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: SVN add with AWK</title>
	<atom:link href="http://xentek.net/xentek/247/svn-add-with-awk/feed/" rel="self" type="application/rss+xml" />
	<link>http://xentek.net/xentek/247/svn-add-with-awk/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=svn-add-with-awk</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 14:02:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19827</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Ryan Price</title>
		<link>http://xentek.net/xentek/247/svn-add-with-awk/#comment-655</link>
		<dc:creator>Ryan Price</dc:creator>
		<pubDate>Tue, 23 Sep 2008 18:47:12 +0000</pubDate>
		<guid isPermaLink="false">http:/xentek.net/?p=247#comment-655</guid>
		<description>::adjusts pocket protector::

The grep really isn&#039;t necessary, you know...

awk can apply rules to lines based on lots of logic, for example a regular expression:

svn st &#124; awk &#039;/?/ {print &quot;svn add &quot;$2 }&#039; &#124; bash

Which would only act on lines that contained a question mark. Of course you could change the pattern to be more exact using:
/^?/

And if SVN didn&#039;t use a question mark for that status, you wouldn&#039;t need the backslash, but I didn&#039;t invent the thing.</description>
		<content:encoded><![CDATA[<p>::adjusts pocket protector::</p>
<p>The grep really isn&#8217;t necessary, you know&#8230;</p>
<p>awk can apply rules to lines based on lots of logic, for example a regular expression:</p>
<p>svn st | awk &#8216;/?/ {print &#8220;svn add &#8220;$2 }&#8217;| bash</p>
<p>Which would only act on lines that contained a question mark. Of course you could change the pattern to be more exact using:<br />
/^?/</p>
<p>And if SVN didn&#8217;t use a question mark for that status, you wouldn&#8217;t need the backslash, but I didn&#8217;t invent the thing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

