1753515 Members
6097 Online
108795 Solutions
New Discussion юеВ

Re: Sqlplus_Oracle8i

 
Arun_39
New Member

Re: Sqlplus_Oracle8i

hi Bryson,
urs is working fine.

i need the output as align format.
Yogeeraj_1
Honored Contributor

Re: Sqlplus_Oracle8i

hi,

you can use chr(9)


for instance, one easy way would be, assuming the version is always 8.1.7.4.0, you can do a replace of 8.1.7.4.0 with chr(9)||'8.1.7.4.0'...


nb. chr(9) = tab character

hope this helps!

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Keith Bryson
Honored Contributor

Re: Sqlplus_Oracle8i

This works - but it's dirty!!! If your version number changes, it'll stop working:

cat /tmp/output | awk -F"-" {'print $2'} | cut -c2- | awk -F"8.1" {'print $1"\t8.1"$2'}

Keith
Arse-cover at all costs