Help me understand this!
Lerebours, Jose
Jose.Lerebours at EagleGL.com
Wed Jul 21 11:28:47 PDT 2004
>From filePro process, I am using
x=open(file,"rwtc"), y=write(x,string) and z=close(x)
Now, string holds value from two fields
field1(10,*) and field2(13,*)
content in field1 is mostly not longer than 8 char
So, the written file ends-up looking like so
0123456789012345678901234567890
FIELD1LN1 FIELD2LINE1
FIELD1LN2 FIELD2LINE2
FIELD1LN3 FIELD2LINE3
etc, etc, etc ...
I then use shell script to run a for/next loop
for X in `cat filename`
do
echo "$X"
done
The displayed text is as follows
FIELD1LN1
FIELD1LINE1
FIELD1LN2
FIELD2LINE2
FIELD1LN3
FIELD2LINE3
I am expecting to retain both fields side by side
in $X. If I vi the file it looks fine. If I cat
the file it looks fine ...
Why is this? How can I get what I am looking for?
Thank you all in advance!
--
Jose Lerebours
Eagle Global Logistics
1801 NW 82nd Avenue
Miami, FL 33126
Voice: (305) 594-0038 Ext 7556
Fax #: (305) 593-0431
eMail: Jose.Lerebours at eaglegl.com
http://www.eaglegl.com
More information about the Filepro-list
mailing list