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

[no subject]



On Tue, 2004-11-16 at 08:07, Geoffrey wrote:
> for fn in *.csv; do
> cat $fn
> echo
> done > output
> 
> OR
> 
> for fn in *.csv; do
> sed 's/$/\n/' $fn
> done > output

	Y'all might hate me for this, but try:

	sed G *.csv

and stand well back. ;-)

	The G command in sed will double space the input for ya.

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--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="00700" href="msg00700.html">[ale] help with a tiny shell script</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00776.html">[ale] TiVo Will No Longer Skip Past Advertisers</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00778.html">[ale] Image programs for Linux?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00700.html">[ale] help with a tiny shell script</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00704.html">[ale] Last Chance...</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00777"><strong>Date</strong></a></li>
<li><a href="threads.html#00777"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

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