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

Home -> Community -> Mailing Lists -> Oracle-L -> OT: awk problem

OT: awk problem

From: Maria Aurora VT de la Vega <mtdelavega_at_pse.org.ph>
Date: Wed, 15 May 2002 00:28:38 -0800
Message-ID: <F001.00460C3B.20020515002838@fatcity.com>



 

I'm hoping that there are awk gurus also in this list.

my problem:
when I use awk, it cuts off a part of the line

$ cat -n *0509*|awk '{if ((substr($0,34,2) == "1I") && (length($0)) == 107) {print $0}}'|sort
  1248  110 20020509909000010931381IF110 201 90900001PCOR    AJ        S10000       10000       00001.7600MD
  1249  110 20020509909000020931511IF110 201 90900002PCOR    AJ        S10000       10000       00001.7800MD
  1250  110 20020509909000030931591IF110 201 90900003PCOR    AJ        S20000       20000       00001.8000MD

i am supposed to get a longer line
getting line 1248 as an example:

$ grep "110 20020509909000010931381IF110 201 90900001PCOR" *0509*
110 20020509909000010931381IF110 201 90900001PCOR    AJ        S10000       10000       00001.7600MD C0905L

if I look at the file in windows notepad, this same line has 4box characters between  00001.7600MD and C0905L
I am not sure what those 4 box characters are.

help.

Thanks.

=)
--
"Never attribute to malice that which can be adequately explained by stupidity."

Maria Aurora VT de la Vega OCP
Database Specialist
Philippine Stock Exchange, Inc.
  -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Maria Aurora VT de la Vega INET: mtdelavega@pse.org.ph Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@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 Wed May 15 2002 - 03:28:38 CDT

Original text of this message

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