Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Tomas Lind <Tomas.Lind@ki.se> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | SV: st: Windows 7 search inside do-file |
Date | Fri, 9 Dec 2011 13:26:31 +0000 |
Thanks Patrick for input on this peculiar matter. I´ll try it as soon as I can get help with the DOS-prompter from our computer experts. /Tomas -----Ursprungligt meddelande----- Från: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] För Grealy, Patrick J Skickat: den 8 december 2011 17:42 Till: statalist@hsphsun2.harvard.edu Ämne: RE: st: Windows 7 search inside do-file 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/ * * 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/