hariom wrote:
> Hi All,
>
> I have a query. Suppose if we need to find a
> 1)string or
> 2)a command's usage or
> 3)find similar command usage
>
> in all the files in all the Directories of TYPE=UD under the run
> directory.? How that is possible.?
>
> Possiblities available are:-
> 1) ESEARCH OR SEARCH command from jshell. But this is restricted to
> one BP. But i need the search to be done in all the BPs or directories
> of TYPE = UD.
> 2) We can use EB.TEXT.SCAN to search a string in all the BPs, but we
> have to specify all the BP names when we run EB.TEXT.SCAN, that
> becomes tedious if we have 150 BPs... no feasible.
> 3) In Unix, we can even use "grep" command (Eg: grep -Rn "CALL
> OFS.GLOBUS.MANAGER" /bnk.run)
> But this command searches in all the directories under the bnk.run
> directory, which includes globusbin, globuslib, lib, bin and all other
> unwanted direcotries too.
>
> But the query is to find the search string's occurance only in all the
> directories under the bnk.run but of TYPE=UD.
> Is that possible???
>
> How can i specify my search to point directories of TYPE=UD under the
> bnk.run?
>   
find bnk.run -name "*BP" -type d |xargs grep "stringtoserachfor"

Jim

--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to