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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Very Simply KSH Question

RE: Very Simply KSH Question

From: Post, Ethan <Ethan.Post_at_ps.net>
Date: Tue, 5 Apr 2005 15:51:40 -0500
Message-ID: <E5D2567DDF0D03428A15664A78CA473C026BAE@pscdalpexch02.perotsystems.net>


Think I am rediscovering the linux gotcha wheel here.

http://www.linux.com/guides/abs-guide/gotchas.shtml

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Kevin Lange Sent: Tuesday, April 05, 2005 3:48 PM
To: oracle-l_at_freelists.org
Subject: RE: Very Simply KSH Question

Unfortunately, the only way I could avoid multiple file reads of the same
file was this :

vFileName=3D'file.ext'
for value in `cat ${vFileName}`
do
  x=3D`echo ${value}|awk -F'|' '{ print $2 }'`   y=3D`echo ${value}|awk -F'|' '{ print $3 }'` done

Its unfortunate because it looks a lot like the code you had that you hated.
And it does work on Linux

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Apr 05 2005 - 16:56:15 CDT

Original text of this message

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