creating sel on the fly with :
Enrique Arredondo
henry at vegena.net
Thu Jun 2 07:49:03 PDT 2005
----- Original Message -----
From: "Enrique Arredondo" <henry at vegena.net>
To: <filepro-list at lists.celestial.com>
Sent: Wednesday, June 01, 2005 3:56 PM
Subject: creating sel on the fly with :
> I'm using fp 5.0.13 on OSR 5.0.6.
>
> I'm creating some sel files on the fly and one of the fields that I need
> to use has a ":" in the field, How can I change that ":" to a "^A" ?
>
>
> Example :
>
> QUOTE=`cat $FILE2 | grep ADDRFQ | cut -f2 -d~`
>
> (this sets QUOTE as 056455:246544)
>
> echo " " > /usr2/appl/filepro/addrfq/sel.received
> echo :2::$QUOTE >> /usr2/appl/filepro/addrfq/sel.received
>
> (this creates the sel file , but doesn't puts the ":")
>
> Group Field Heading Rel Value
>
> . 2 . DocumentId . R-056455
>
> how can I make it put the remaining :246544, the same as ^A246544 if
> looked at it using vi ?
>
> Thanks
>
FYI
I changed the : for a wildcard = now I get what I needed
QUOTE=`cat $FILE | grep ADDRFQ | cut -f2 -d~ | tr ":" "="`
and the selection set is created like this:
GROUP fIELD Heading Rel Value
. 2 . DocumentId . 056455=246544
More information about the Filepro-list
mailing list