<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Loop over a set of files from the shell | Solaris | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Fri, 25 Jun 2004 10:41:37 -0000</lastBuildDate><item><title>Re: Loop over a set of files from the shell | Solaris | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/166/loop-over-a-set-of-files-from-the-shell/#comment-2767069</link><description>Possibly a bit pedantic, but to save system time (especially if using multiple times in a script) you may be better to do the following for the last part...&lt;br&gt;&lt;br&gt;cat `ls -tr *.log` &amp;gt;biglog&lt;br&gt;&lt;br&gt;The cat is designed to be able to put two or more files together. &lt;br&gt;&lt;br&gt;By doing it this way, you don't need to worry about the existence or contents of biglog as you will overwrite it with the &amp;gt; rather than using apend to &amp;gt;&amp;gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">guest</dc:creator><pubDate>Fri, 25 Jun 2004 10:41:37 -0000</pubDate></item></channel></rss>