[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Tue Nov 16 05:09:42 2004 -->
- <!--x-from-r13: wbanguna.tynff ng voo.tngrpu.rqh (Xbanguna Uynff) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] help with a tiny shell script - correction -->
- <li><em>date</em>: Tue Nov 16 05:09:42 2004</li>
- <li><em>from</em>: jonathan.glass at ibb.gatech.edu (Jonathan Glass)</li>
- <li><em>in-reply-to</em>: <<a href="msg00694.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00692.html">[email protected]</a>> <<a href="msg00693.html">[email protected]</a>> <<a href="msg00694.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] help with a tiny shell script - correction</li>
> 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>