Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: Windows 7 search inside do-file
From
"Grealy, Patrick J" <[email protected]>
To
"[email protected]" <[email protected]>
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: [email protected] [mailto:[email protected]] On Behalf Of Tomas Lind
Sent: Thursday, December 08, 2011 2:23 AM
To: [email protected]
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: [email protected] [mailto:[email protected]] För Austin Nichols
Skickat: den 7 december 2011 14:03
Till: [email protected]
Ämne: Re: st: Windows 7 search inside do-file
Tomas Lind <[email protected]>:
ssc d find
http://fmwww.bc.edu/repec/bocode/f/find.html
On Wed, Dec 7, 2011 at 3:13 AM, Tomas Lind <[email protected]> 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/