[THIN] Re: OT: Find Command

  • From: RICHARD.CHAPMAN@xxxxxxxxxxxxxxxxxx
  • To: thin@xxxxxxxxxxxxx
  • Date: Sat, 14 Jun 2003 01:06:28 +0100

Hi Greg

Is Instr() any use? - Searches a string in a string (parsing from left to
right)

From the reference...

InStr( )
Action: Scans a string (from left to right) for the presence of a second
string.
Syntax: INSTR ("string1", "string2")

Parameters: String1 
The string to search in.

String2 
The string to search for. 
 
Returns: 
? Offset of the first character of string2 found in string1 
0 String2 not present in string1  

See Also: InStrRev( ), Left( ), Right( ), SubStr( )
Example: ; check if domain contains the string "TEST" 
$x = INSTR(@DOMAIN, "TEST")

Richard Chapman 
Technical Support 
richard.chapman@xxxxxxxxxxxxxxxxxx 
Ph +44 207 587 2205 

This email is confidential to the addressee only. If you do not believe
that you are the intended addressee, do not use, pass on or copy it in
any way. If you have received it in error, please delete it immediately
and telephone the number given, reversing the charges if necessary.



-----Original Message-----
From: Greg.Watts@xxxxxxxxxxxxxx [mailto:Greg.Watts@xxxxxxxxxxxxxx]
Sent: 13 June 2003 16:42
To: thin@xxxxxxxxxxxxx
Subject: [THIN] OT: Find Command


Is their a command in Kix that is similar to the DOS find command? I am
writing a script that I need to search a text file for a certain string and
if the string exists I need to run another command.  Any help would be
great!
Thanks,

Greg Watts
System and Technology Group
(410) 884 -2157
greg.watts@xxxxxxxxxxxxxx
MAC N2702-011




********************************************************
This weeks sponsor - Emergent Online 99Point9.com
Designed to facilitate efficient resolution of your technical server-based
questions, issues and incidents, technical support is a few mouse-clicks
away: you submit your incident-specific support requests via our online
support helpdesk, our certified engineers resolve them while you monitor the
progress, and your systems get back to 99.9% up-time in no time.
http://www.99point9.com 
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm


****************************************************************************


SMOKE ALARMS SAVE LIVES

Go to London Fire at www.london-fire.gov.uk/firesafety 

This email is confidential to the addressee only. If you do not believe that
you are the intended addressee, do not use, pass on or copy it in any way.
If you have received it in error, please delete it immediately and telephone
the number given, reversing the charges if necessary.
********************************************************
This weeks sponsor - Emergent Online 99Point9.com
Designed to facilitate efficient resolution of your technical server-based 
questions, issues and incidents, technical support is a few mouse-clicks away: 
you submit your incident-specific support requests via our online support 
helpdesk, our certified engineers resolve them while you monitor the progress, 
and your systems get back to 99.9% up-time in no time.
http://www.99point9.com 
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: