[SunHELP] (no subject)

Thomas Cameron Thomas.Cameron at CameronTech.com
Wed Oct 9 20:49:32 CDT 2002


[thomas.cameron at ns1 thomas.cameron]$ cat sample.txt
Now is the time
for all good men
to come to the aid
of their country.

The quick brown
fox jumps over
the lazy dog.
[thomas.cameron at ns1 thomas.cameron]$ cat sample.txt | tr "\n" " "
Now is the time for all good men to come to the aid of their country.  The
quick brown fox jumps over the lazy dog.

Can't help you on the second one.

Thomas
----- Original Message -----
From: "Philips Anwin-Q16166" <anwin at motorola.com>
To: <sunhelp at sunhelp.org>
Sent: Wednesday, October 09, 2002 12:26 AM
Subject: [SunHELP] (no subject)


> Hi all
>
> I am writing a bash shell script. Can anyone suggest me a command to
remove all newline characters from a file?
> also a command to extract the text between two patterns in a file.
>
> Thanks in advance.
>
> Regds
> Anwin Philips
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list