<?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: Convert text files within a directory from Windows to Unix format</title>
	<atom:link href="http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=convert-text-files-within-a-directory-from-windows-to-unix-format</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:43:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: ragnar</title>
		<link>http://www.wiredrevolution.com/bash-programming/convert-text-files-within-a-directory-from-windows-to-unix-format/comment-page-1#comment-243</link>
		<dc:creator>ragnar</dc:creator>
		<pubDate>Mon, 16 Nov 2009 21:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=901#comment-243</guid>
		<description>recursive (script name must be kk.sh or change the name below):

for file in &quot;$1&quot;*; do
   if [[ -f $file &amp;&amp; `file $file &#124; grep text` &amp;&amp; $file != &quot;kk.sh&quot; ]]; then
      tr &#039;\r&#039; &#039;\n&#039;  &quot;$file&quot;_clear
      mv &quot;$file&quot;_clear $file
   elif [[ -d $file &amp;&amp; $file != &quot;kk.sh&quot; ]]; then
      chmod +x kk.sh
      echo &quot;$file/&quot;
      ./kk.sh &quot;$file/&quot;
   fi
done</description>
		<content:encoded><![CDATA[<p>recursive (script name must be kk.sh or change the name below):</p>
<p>for file in &#8220;$1&#8243;*; do<br />
   if [[ -f $file &amp;&amp; `file $file | grep text` &amp;&amp; $file != "kk.sh" ]]; then<br />
      tr &#8216;\r&#8217; &#8216;\n&#8217;  &#8220;$file&#8221;_clear<br />
      mv &#8220;$file&#8221;_clear $file<br />
   elif [[ -d $file &amp;&amp; $file != "kk.sh" ]]; then<br />
      chmod +x kk.sh<br />
      echo &#8220;$file/&#8221;<br />
      ./kk.sh &#8220;$file/&#8221;<br />
   fi<br />
done</p>
]]></content:encoded>
	</item>
</channel>
</rss>

