View previous topic :: View next topic
|
Author |
Message |
Rehana
New User
Joined: 12 Feb 2007 Posts: 13 Location: chennai
|
|
|
|
Hi,
I like to find the exact string match.
For example,
list
clist
in the above words, if i search of list( f list) i will get both the occurrence.
But i need the exact matching(only the list)
Can u pls help me out |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
F ' LIST' or F 'LIST ' or F ' LIST '
Take your pick. |
|
Back to top |
|
|
Rehana
New User
Joined: 12 Feb 2007 Posts: 13 Location: chennai
|
|
|
|
hi,
It is not working. I will explain the problem with another example.
LIST.TEST.TEST1
LIST.TEST.TEST2
LIST.TEST
If i apply find for 'LIST.TEST', i will get all the above occurences, since that string is present as a substring.
But i need only to find 'LIST.TEST' from the above.
Hope i am clear. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
F 'LIST.TEST ' |
|
Back to top |
|
|
Rehana
New User
Joined: 12 Feb 2007 Posts: 13 Location: chennai
|
|
|
|
thank you |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The FIND command has some opernads to help you refine your search. One of the operand is WORD, which looks for the requested string only when it appears as a word. For more information, please refer to the fine manual.
O. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
what about reading a little bit of ISPF docs, or just take some time to press pf1 ( which means HELP ) and navigate the ISPF TUTORIALS ?!?
anyway if You had done that You would have found that the find command has some modifiers useful to find exactly what You need
--- WORD
--- PREFIX
--- SUFFIX
and to conclude, the command You should issue is
f list word
regards |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Rehana,
What I usually do is follow the find with "x all test.t" |
|
Back to top |
|
|
|