Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Work with many Do files simultaneously


From   David Kantor <[email protected]>
To   [email protected]
Subject   Re: st: Work with many Do files simultaneously
Date   Wed, 22 Apr 2009 12:08:57 -0400

At 10:41 AM 4/22/2009, Luis wrote:

Dear listers,

I have 50 Do files and I want to find only one word. How can I explore
simultaneously these 50 Do files to find this word in Stata 10?

Here's what I do. But I'm a bit old-fashioned about this kind of thing. And this is not "in" Stata.

This applies to Windows. (Similar possibilities may exist on other command-based systems.) Under the command prompt, I use the find command. Suppose you want to search all do files in the current directory:
find "someword" *.do

Note the wildcard -- *.do

Now, if the output gets too big, I redirect it:

find "someword" *.do >aaa

Now aaa contains the output of that command, and you can view it with your favorite view/edit facility.

Type "help find" at the Windows command prompt for more info on find. You may especially want to use the /I option.

HTH
--David

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index