RE: [U2] grep for @VM

2008-07-14 Thread Symeon Breen
Do you know what file it is in ? - Have you a dictionary item set up for the
field as multi value ?  You could then use a standard select statement on
the file and field etc

If you dont know what file - well I presume you know what unidata account
it is in - you could write a program to loop through each file in the
account.

Or is this a non database table and just a plain unix file - again you need
to know where to look really - it may take some time to grep from / all
files on the disk


As far as using a unix grep command for @vm it is character 0xFD - you can
just put the character in the grep string if your shells LANG environment
variable is set to iso-8859-1   if it is straight ascii or utf-8 etc it
would not work. Character 0xFD in iso-8859-1 is a lowercase y with an acute
- } (this may not display correctly in email)

Rgds
Symeon.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Beahm
Sent: 14 July 2008 20:07
To: u2-users@listserver.u2ug.org
Subject: [U2] grep for @VM

I am trying to find an obscure setting somewhere in a UD database on 
HP-UX; I know that the character string is [EMAIL PROTECTED]

Can anyone tell me how to grep for this combination of alpha and 
high-ASCII characters so I can resolve a recurring accounting issue?

Thanks in advance,
David Beahm
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.4.10/1550 - Release Date: 7/13/2008
5:58 PM
No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.4.10/1550 - Release Date: 7/13/2008
5:58 PM
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] grep for @VM

2008-07-14 Thread karlp
 That first '*' is a 'Z' ooo sorry. I changed my tac about half-way
through and didn't re-read very well.

The line could be:

VAR=`cat ITEMNAME|grep $VAR|cut -f4 -d'Z'`

HTH,

Karl

quote who=[EMAIL PROTECTED]
 quote who=David Beahm
 I am trying to find an obscure setting somewhere in a UD database on
 HP-UX; I know that the character string is [EMAIL PROTECTED]

 Can anyone tell me how to grep for this combination of alpha and
 high-ASCII characters so I can resolve a recurring accounting issue?

 I'm on AIX with uniVerse, but have an idea.

 Create a simple type 1 or 19 (equivalent on UD) file (Unix Directory) and
 then at TCL, edit the item and put something like:

 0001: [EMAIL PROTECTED]

 then you can exit to Unix and cat the file and see what comes up. Then put
 that in single quotes in your grep statement. If you are running
 X-Windows, it will make the task much easier, but it can be done with a
 command-line, too by assign the whole thing to a variable, ie:

 VAR=`cat ITEM`
 VAR=`echo $VAR|cut -f4 -d'*'`

 That's assuming you used 4 'Z's before @VM. Then you could do:

 grep $VAR *

 or

 find . -exec grep $VAR {} \; -print
 if you need to search through many files and subdirectories.

 You should get your results.

 I think that would work for you.



 Thanks in advance,
 David Beahm
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/



 --
 Karl Pearson
 Director of I.T.
 ATS Industrial Supply, Inc.
 [EMAIL PROTECTED]
 http://www.atsindustrial.com
 800-789-9300 x29
 Local: 801-978-4429
 Fax: 801-972-3888

 ATS: Customers Are Our Priority
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/



-- 
Karl Pearson
Director of I.T.
ATS Industrial Supply, Inc.
[EMAIL PROTECTED]
http://www.atsindustrial.com
800-789-9300 x29
Local: 801-978-4429
Fax: 801-972-3888

ATS: Customers Are Our Priority
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] grep for @VM

2008-07-14 Thread Rex Gozar

find . -type f -exec grep -l 12`echo -e \0375`26 {} \;

David Beahm wrote:
I am trying to find an obscure setting somewhere in a UD database on 
HP-UX; I know that the character string is [EMAIL PROTECTED]


Can anyone tell me how to grep for this combination of alpha and 
high-ASCII characters so I can resolve a recurring accounting issue?


Thanks in advance,
David Beahm
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] grep for @VM

2008-07-14 Thread Womack, Adrian
If you're only looking through a few files, wouldn't it be easier to
write a short basic program to read every record  use INDEX() on each
looking for the string?

eg.

STRING = 12:@VM:26
SELECT filevar
LOOP
WHILE READNEXT ID
   READ REC FROM filevar,ID
   THEN
  IF INDEX(REC,STRING,1)
 THEN CRT Found in :ID
   END
REPEAT

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Beahm
Sent: Tuesday, 15 July 2008 3:07 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] grep for @VM

I am trying to find an obscure setting somewhere in a UD database on
HP-UX; I know that the character string is [EMAIL PROTECTED]

Can anyone tell me how to grep for this combination of alpha and
high-ASCII characters so I can resolve a recurring accounting issue?

Thanks in advance,
David Beahm
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


DISCLAIMER:
Disclaimer.  This e-mail is private and confidential. If you are not the 
intended recipient, please advise us by return e-mail immediately, and delete 
the e-mail and any attachments without using or disclosing the contents in any 
way. The views expressed in this e-mail are those of the author, and do not 
represent those of this company unless this is clearly indicated. You should 
scan this e-mail and any attachments for viruses. This company accepts no 
liability for any direct or indirect damage or loss resulting from the use of 
any attachments to this e-mail.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] grep for @VM

2008-07-14 Thread Jeff Powell
Try this: grep 12$'\xfd'26 *

On Mon, 2008-07-14 at 15:06 -0400, David Beahm wrote:

 I am trying to find an obscure setting somewhere in a UD database on 
 HP-UX; I know that the character string is [EMAIL PROTECTED]
 
 Can anyone tell me how to grep for this combination of alpha and 
 high-ASCII characters so I can resolve a recurring accounting issue?
 
 Thanks in advance,
 David Beahm
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/