home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / oracle / 2945 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.6 KB  |  56 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!nokia.fi!ntc02.tele.nokia.fi!kuismin
  3. From: kuismin@ntc02.tele.nokia.fi
  4. Subject: Spool & Trailing Blanks
  5. Message-ID: <1993Jan25.133239.1@ntc02.tele.nokia.fi>
  6. Lines: 44
  7. Sender: usenet@noknic.nokia.fi (USENET at noknic)
  8. Nntp-Posting-Host: ntc02.tele.nokia.fi
  9. Organization: Nokia Telecommunications.
  10. Date: Mon, 25 Jan 1993 11:32:39 GMT
  11.  
  12.  
  13.     My environment:
  14.         * SunOS Release 4.1.3
  15.         * Oracle SQL*Plus v.3.0.12.2.1
  16.         * Oracle RDBMS    v.6.0.36.4.1
  17.         * Oracle PL/SQL   v.1.0.35.1.1
  18.  
  19.     What is done?
  20.         I'm spooling my query into a file with SQL*Plus's SPOOL command.
  21.  
  22.     What is the problem?
  23.         1) Trailing blanks
  24.  
  25.         SQL*Plus uses LINESIZE setting and puts trailing blanks in the
  26.         end of each line it spools.  I need to remove all these blanks!
  27.  
  28.         Can this be done by SQL*Plus?
  29.         What unix commands could be used to do this?  I'm novice with unix.
  30.  
  31.         2) Unix to Dos convertion
  32.  
  33.         My final aim is to convert the spooled file, which in UNIX
  34.         format, into DOS format.  That is, I need to put <CR><LF>
  35.         instead of <LF> in the end of each line.
  36.  
  37.         Can this be done by SQL*Plus?
  38.         What unix command could be used to do this? I'm novice with unix.
  39.  
  40.     This is what I get now:
  41.  
  42.         line1 line1                      <LF>
  43.         line2 line2 line2 line2          <LF>
  44.         line3 line3 line3                <LF>
  45.  
  46.     This is what I want to have:
  47.  
  48.         line1 line1<CR><LF>
  49.         line2 line2 line2 line2<CR><LF>
  50.         line3 line3 line3<CR><LF>
  51.  
  52.     Any help is appreciated!
  53.  
  54.     -Mikko Kuismin
  55.  
  56.