Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: Windows 7 search inside do-file


From   "Grealy, Patrick J" <Patrick.J.Grealy@uth.tmc.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Windows 7 search inside do-file
Date   Thu, 8 Dec 2011 10:42:23 -0600

Tomas,
I am also fond of the Windows/MS-DOS findstr command mentioned in the description of SSC/Find. I usually use the /i option(ignore case) and /s(search all sub-folders). You should type "help findstr" at the DOS prompt for complete list of options which include regular expression matching.

e.g. findstr/i/s tabout c:\work\*.do  -- this would search for "tabout" string in all *.do files in folder c:\work as well as all sub-folders.

Now, you just have to figure out how to get the DOS command prompt in Windows 7 - it keeps getting more difficult(I am still at Windows XP). - Pat G.

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Tomas Lind
Sent: Thursday, December 08, 2011 2:23 AM
To: statalist@hsphsun2.harvard.edu
Subject: SV: st: Windows 7 search inside do-file

Thanks Austin, Elizabeth and Nick for helpful advice. 

-find- works fine to search within a current folder.

/Tomas



-----Ursprungligt meddelande-----
Från: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] För Austin Nichols
Skickat: den 7 december 2011 14:03
Till: statalist@hsphsun2.harvard.edu
Ämne: Re: st: Windows 7 search inside do-file

Tomas Lind <Tomas.Lind@ki.se>:
ssc d find
http://fmwww.bc.edu/repec/bocode/f/find.html

On Wed, Dec 7, 2011 at 3:13 AM, Tomas Lind <Tomas.Lind@ki.se> wrote:
> Hi Statalisters,
>
> How to find do-files with a specific "word or phrase" inside the do-file using search in Windows 7?
>
> I have tried to follow advice given here (check the box "Always search file names and content") :
>
> http://answers.microsoft.com/en-us/windows/forum/windows_7-files/in-windows-7-i-want-to-search-for-all-files/aadfe1f1-4a33-406b-8e72-bb920efa4f30
>
> However it doesn´t work! Does anyone know anything about this?
>
> I am using Stata 11 on a PC

*
*   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/

*
*   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/

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index