[SunHELP] data manipulation

Manish Oberai (EHPT) sunhelp at sunhelp.org
Thu Nov 23 03:43:11 CST 2000


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C05531.CB011C60
Content-Type: text/plain;
	charset="iso-8859-1"

Hi 

   you can try this "cat <filename> | sed 's/.$/ /g' > tmp_filename" and
then 

    # mv tmp_filename filename

   this really works.

Thanks

Manish

-----Original Message-----
From: Van Niekerk, Ronelle [mailto:ronelle.vanniekerk at csfb.com]
Sent: Thursday, November 23, 2000 2:46 PM
To: Sunhelp (E-mail)
Subject: [SunHELP] data manipulation


Hi guys,

I'm writing a script and have come across an irritating problem. THe scripts
accepts data eg: word, in from a tcp port and writes it to a file as:
word^M.

I know you can't see the ^M when you cat or more the file - but it is still
there.

Is there a command or environment setting that I can use that will tell my
script to ignore this?

thanks in advance.

> Ronelle van Niekerk
> Market Data Team
> CSFB   IBD|IT   
> Tel:        +44 (0)207 888 2671
> e-mail:    ronelle.vanniekerk at csfb.com
> 
> 
> 

This message is for the named person's use only.  It may contain 
confidential, proprietary or legally privileged information.  No 
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender.  You must not, directly or indirectly, use, disclose, distribute, 
print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.  Any
views expressed in this message are those of the individual sender, except
where the message states otherwise and the sender is authorised to state 
them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this message is 
indicative only, is subject to change and does not constitute an offer to 
deal at any price quoted.
Any reference to the terms of executed transactions should be treated as 
preliminary only and subject to our formal written confirmation.




_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp

------_=_NextPart_001_01C05531.CB011C60
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [SunHELP] data manipulation</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi </FONT>
</P>

<P><FONT SIZE=2>   you can try this "cat <filename> | sed 's/.$/ /g' > tmp_filename" and then </FONT>
</P>

<P><FONT SIZE=2>    # mv tmp_filename filename</FONT>
</P>

<P><FONT SIZE=2>   this really works.</FONT>
</P>

<P><FONT SIZE=2>Thanks</FONT>
</P>

<P><FONT SIZE=2>Manish</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Van Niekerk, Ronelle [<A HREF="mailto:ronelle.vanniekerk at csfb.com">mailto:ronelle.vanniekerk at csfb.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, November 23, 2000 2:46 PM</FONT>
<BR><FONT SIZE=2>To: Sunhelp (E-mail)</FONT>
<BR><FONT SIZE=2>Subject: [SunHELP] data manipulation</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hi guys,</FONT>
</P>

<P><FONT SIZE=2>I'm writing a script and have come across an irritating problem. THe scripts</FONT>
<BR><FONT SIZE=2>accepts data eg: word, in from a tcp port and writes it to a file as:</FONT>
<BR><FONT SIZE=2>word^M.</FONT>
</P>

<P><FONT SIZE=2>I know you can't see the ^M when you cat or more the file - but it is still</FONT>
<BR><FONT SIZE=2>there.</FONT>
</P>

<P><FONT SIZE=2>Is there a command or environment setting that I can use that will tell my</FONT>
<BR><FONT SIZE=2>script to ignore this?</FONT>
</P>

<P><FONT SIZE=2>thanks in advance.</FONT>
</P>

<P><FONT SIZE=2>> Ronelle van Niekerk</FONT>
<BR><FONT SIZE=2>> Market Data Team</FONT>
<BR><FONT SIZE=2>> CSFB   IBD|IT   </FONT>
<BR><FONT SIZE=2>> Tel:        +44 (0)207 888 2671</FONT>
<BR><FONT SIZE=2>> e-mail:    ronelle.vanniekerk at csfb.com</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
</P>

<P><FONT SIZE=2>This message is for the named person's use only.  It may contain </FONT>
<BR><FONT SIZE=2>confidential, proprietary or legally privileged information.  No </FONT>
<BR><FONT SIZE=2>confidentiality or privilege is waived or lost by any mistransmission.</FONT>
<BR><FONT SIZE=2>If you receive this message in error, please immediately delete it and all</FONT>
<BR><FONT SIZE=2>copies of it from your system, destroy any hard copies of it and notify the</FONT>
<BR><FONT SIZE=2>sender.  You must not, directly or indirectly, use, disclose, distribute, </FONT>
<BR><FONT SIZE=2>print, or copy any part of this message if you are not the intended </FONT>
<BR><FONT SIZE=2>recipient. CREDIT SUISSE GROUP and each of its subsidiaries each reserve</FONT>
<BR><FONT SIZE=2>the right to monitor all e-mail communications through its networks.  Any</FONT>
<BR><FONT SIZE=2>views expressed in this message are those of the individual sender, except</FONT>
<BR><FONT SIZE=2>where the message states otherwise and the sender is authorised to state </FONT>
<BR><FONT SIZE=2>them to be the views of any such entity.</FONT>
<BR><FONT SIZE=2>Unless otherwise stated, any pricing information given in this message is </FONT>
<BR><FONT SIZE=2>indicative only, is subject to change and does not constitute an offer to </FONT>
<BR><FONT SIZE=2>deal at any price quoted.</FONT>
<BR><FONT SIZE=2>Any reference to the terms of executed transactions should be treated as </FONT>
<BR><FONT SIZE=2>preliminary only and subject to our formal written confirmation.</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>SunHELP maillist  -  SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=2><A HREF="http://www.sunhelp.org/mailman/listinfo/sunhelp" TARGET="_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C05531.CB011C60--



More information about the SunHELP mailing list