Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: shell question
Please see the following text, which comes from my shell script:
for arg_each_line in `cat $WORKING_DIR/log_file_parsing_temp02.temp | awk
'{ pri
nt $1"==="$2"==="$3 }'`
do
one_line=`echo $arg_each_line | sed 's/===/ /g'` # debug one line below if enabled #echo $one_line >> $WORKING_DIR/log_file_parsing_temp03.temp client_ip=`echo $one_line | awk '{ print $1 }' | sed 's/ //g'` org_date=`echo $one_line | awk '{ print $2 }' | sed 's/ //g'` oracle_date=`$SCRIPT_HOME/ldate $org_date` host_ip=`echo $one_line | awk '{ print $3 }' | sed 's/ //g'` # transfer client_ip from alphabet to digital client_addr=`echo "$client_ip" | egrep -i -e [a-z] | sed 's/ //g'` # get the length of client_addr LENGTH=`expr "$client_addr" : '.*'` ......
Hope that it is helpful!
Don
A.Bahar_at_billing-components.com wrote:
>
> hi all ,
>
> how can I read a text file and print line by line.
>
> Rgds.
> Arslan.
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: <A.Bahar_at_billing-components.com
> INET: A.Bahar_at_billing-components.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Thu Jul 17 2003 - 14:37:10 CDT
![]() |
![]() |