Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to get a variable length ASCII file from SQL*PLUS output

Re: How to get a variable length ASCII file from SQL*PLUS output

From: Ian Cary <cary_at_gatwick.geco-prakla.slb.com>
Date: 1997/10/02
Message-ID: <343394F5.1762@gatwick.geco-prakla.slb.com>#1/1

Bu Yun Fei wrote:

>

> Appreciate if anyone could tell me how to convert a fixed length text file
> to a variable length file by using certain UNIX command.

As it is trailing spaces that are being appended you could use

sed -e "s/ *$//" infile >outfile

to remove them

Cheers,

Ian Received on Thu Oct 02 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US