<?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: Squirt: Moving Files Around Using Bash</title>
	<atom:link href="http://test.latko.org/?feed=rss2&#038;p=292" rel="self" type="application/rss+xml" />
	<link>http://test.latko.org/?p=292</link>
	<description>A Misanthropic Anthropoid With Something to Say</description>
	<lastBuildDate>Sun, 13 Nov 2022 02:54:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris Latko</title>
		<link>http://test.latko.org/?p=292&#038;cpage=1#comment-173</link>
		<dc:creator>Chris Latko</dc:creator>
		<pubDate>Fri, 27 Feb 2009 16:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.latko.org/?p=292#comment-173</guid>
		<description>True. You should use -xdev to limit recursion, but the stock version of find in OS X 10.5.6 doesn&#039;t support that. You would have to use -maxdepth. Thanks for the one liner.</description>
		<content:encoded><![CDATA[<p>True. You should use -xdev to limit recursion, but the stock version of find in OS X 10.5.6 doesn&#8217;t support that. You would have to use -maxdepth. Thanks for the one liner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ML</title>
		<link>http://test.latko.org/?p=292&#038;cpage=1#comment-171</link>
		<dc:creator>ML</dc:creator>
		<pubDate>Fri, 27 Feb 2009 07:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.latko.org/?p=292#comment-171</guid>
		<description>Hmm... this doesn&#039;t work?

$ for file in *_1.jpg; do mv $file ../xx/&quot;$(basename $file _1.jpg).jpg&quot;; done

Unless you want to find files in subdir as well, then

$ for file in `find . -name &quot;*_1.jpg&quot;`; do mv $file ../xx/&quot;$(basename $file _1.jpg).jpg&quot;; done</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; this doesn&#8217;t work?</p>
<p>$ for file in *_1.jpg; do mv $file ../xx/&#8221;$(basename $file _1.jpg).jpg&#8221;; done</p>
<p>Unless you want to find files in subdir as well, then</p>
<p>$ for file in `find . -name &#8220;*_1.jpg&#8221;`; do mv $file ../xx/&#8221;$(basename $file _1.jpg).jpg&#8221;; done</p>
]]></content:encoded>
	</item>
</channel>
</rss>
