home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!pyrltd!graeme
- From: graeme@pyra.co.uk (Graeme Sargent)
- Newsgroups: comp.databases.oracle
- Subject: Re: Spool & Trailing Blanks
- Message-ID: <1993Jan26.112159.869@pyra.co.uk>
- Date: 26 Jan 93 11:21:59 GMT
- References: <1993Jan25.133239.1@ntc02.tele.nokia.fi>
- Sender: graeme@pyra.co.uk (Graeme Sargent)
- Reply-To: graeme@pyramid.com (Graeme Sargent)
- Organization: Pyramid Technology Ltd.
- Lines: 39
-
- In <1993Jan25.133239.1@ntc02.tele.nokia.fi> kuismin@ntc02.tele.nokia.fi writes:
-
- > This is what I get now:
-
- > line1 line1 <LF>
- > line2 line2 line2 line2 <LF>
- > line3 line3 line3 <LF>
-
- > This is what I want to have:
-
- > line1 line1<CR><LF>
- > line2 line2 line2 line2<CR><LF>
- > line3 line3 line3<CR><LF>
-
- It's easy to do with UNIX:
-
- sed -e "s/ *$//" file1 > file2
-
- will replace all trailing blanks in "file1" with a single <CR> (^M)
- in "file2".
-
- NB. to embed the <CR> in your sed command you type <CTRL>-V,<CTRL>-M
-
- graeme
- --
- Disclaimer: The author's opinions are his own, and not necessarily
- those of Pyramid Technology Ltd. or Pyramid Technology Inc.
- --------------------------------------------------------------------------------
- -m------- Graeme Sargent Voice: +44 (0)252 373035
- ---mmm----- Senior Database Consultant Fax : +44 (0)252 373135
- -----mmmmm--- Pyramid Technology Ltd. Telex: Tell who???
- -------mmmmmmm- Farnborough, Hants GU14 7PL Email: graeme@pyra.co.uk
- --------------------------------------------------------------------------------
- We have the technology. The tricky bit is learning how to use it.
- --
- graeme
- --
- Disclaimer: The author's opinions are his own, and not necessarily
- those of Pyramid Technology Ltd. or Pyramid Technology Inc.
-