[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



> Correction:  the for line should read:
> for i in `\ls *.csv`; do cat $i >> append.csv; echo -e "\n" >> 
> append.csv; done
> (for i in backtick backslash ls start dot csv backtick semicolon ...)
> 
> Also, it should be noted that this will concatenate the output of EVERY 
> .csv file in that directory.  If you have .csv files you don't want 
> appended to "append.csv" you need to make adjustments accordingly.
> 
> Kind regards,
> CB

you should be able to do 
$ for i in *.csv; do cat $i >> append.csv; echo -e "\n" >> append.csv; done

Jonathan

-------------------------------------------------
This mail sent through IMP: <a  rel="nofollow" href="http://horde.org/imp/";>http://horde.org/imp/</a>


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00701" href="msg00701.html">[ale] help with a tiny shell script - correction</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00692" href="msg00692.html">[ale] help with a tiny shell script</a></strong>
<ul><li><em>From:</em> jloden at toughguy.net (jay)</li></ul></li>
<li><strong><a name="00693" href="msg00693.html">[ale] help with a tiny shell script</a></strong>
<ul><li><em>From:</em> christopher at bergeron.com (Christopher Bergeron)</li></ul></li>
<li><strong><a name="00694" href="msg00694.html">[ale] help with a tiny shell script - correction</a></strong>
<ul><li><em>From:</em> christopher at bergeron.com (Christopher Bergeron)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00696.html">[ale] help with a tiny shell script - correction</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00698.html">[ale] Sort of OT: College Majors</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00696.html">[ale] help with a tiny shell script - correction</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00701.html">[ale] help with a tiny shell script - correction</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00697"><strong>Date</strong></a></li>
<li><a href="threads.html#00697"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>