Unix Technical Forum

Re: Whoto remove line feed control character from report output

This is a discussion on Re: Whoto remove line feed control character from report output within the Informix forums, part of the Database Server Software category; --> You are talking about Carriage Return (CR, ^M, Hex 0D, Dec 13). Line Feed (LF, ^J, Hex 0A, Dec ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:06 PM
Habichtsberg, Reinhard
 
Posts: n/a
Default Re: Whoto remove line feed control character from report output

You are talking about Carriage Return (CR, ^M, Hex 0D, Dec 13). Line Feed
(LF, ^J, Hex 0A, Dec 10) is the usual "End of line" in Unix, for example the
row delimiter in unload files.

^M often appears if you work with windows or DOS where "end of line" is
marked with the sequence "^M^J". How do you create your "flat file"?

Reinhard.

> -----Ursprüngliche Nachricht-----
> Von: informix-list-bounces@iiug.org
> [mailto:informix-list-bounces@iiug.org]Im Auftrag von Claus Samuelsen
> Gesendet am: Mittwoch, 10. Mai 2006 21:58
> An: informix-list@iiug.org
> Betreff: Re: Whoto remove line feed control character from
> report output
>
> Franz Grutzmacher wrote:
> > Hi All
> >
> > Hope someone can help me with this little pain.
> > I am creating a output flat file for a 3rd party company.

> The file is
> > fix length 80columns.
> > After sending the file to the 3rd party I was informed that

> there is a
> > line feed character at position 81.
> >
> > Only when viewing the file in TextPad did I manage to see

> the special
> > character. In the vi editor I can't see the LF character.
> >

>
> Many newer vi editors (vim) doesn't display the line feed
> character (^M) unless you open the file with '-b' option.
> I usually remove ^M using vi command ':%s!^M!!g'. ^M is
> entered as Ctrl+V Ctrl+M
>
> > Now how do I remove this character from each line of the

> file. Can the
> > 4gl report do this for me?
> > OS= SCO
> >

> _______________________________________________
> Informix-list mailing list
> Informix-list@iiug.org
> http://www.iiug.org/mailman/listinfo/informix-list
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com