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

From |
"Eric A. Booth" <ebooth@ppri.tamu.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: AW: Work with many Do files simultaneously |

Date |
Wed, 22 Apr 2009 10:44:41 -0500 |

!mdfind word(s)

!mdfind word(s) -onlyin DoFileFolder

~Eric __ Eric A. Booth Public Policy Research Institute Texas A&M University ebooth@ppri.tamu.edu Office: +979.845.6754 Fax: +979.845.0249 http://ppri.tamu.edu On Apr 22, 2009, at 10:28 AM, Austin Nichols wrote:

Or a OS utility (http://en.wikipedia.org/wiki/grep) but try: clear all prog find version 10.1 syntax [anything] [, Match(string asis)] foreach f of local anything { tempfile t filefilter `"`f'"' `t', from(`"`match'"') to("") loc n=r(occurrences) if `n'>0 & `n'<. { di `"`n' matches found in `f'"' *could also display relevant lines of file here } } end cd `c(sysdir_base)'a loc t : dir . file "*.ado" find `t', match(version 8)On Wed, Apr 22, 2009 at 10:43 AM, Martin Weiss<martin.weiss1@gmx.de> wrote:<>That sounds more like a case for a decent text editor than Stata."Find inFiles" is standard fare for most of them... HTH Martin -----Ursprüngliche Nachricht----- Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von lmaldona@smail.uni-koeln.de Gesendet: Mittwoch, 22. April 2009 16:41 An: statalist@hsphsun2.harvard.edu Betreff: st: Work with many Do files simultaneously Dear listers,I have 50 Do files and I want to find only one word. How can Iexploresimultaneously these 50 Do files to find this word in Stata 10? Regards, Luis* * 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/

**References**:**st: Work with many Do files simultaneously***From:*lmaldona@smail.uni-koeln.de

**Re: st: AW: Work with many Do files simultaneously***From:*Austin Nichols <austinnichols@gmail.com>

- Prev by Date:
**st: Within-spell or de-meaning for three-way fixed effects model** - Next by Date:
**Re: st: Work with many Do files simultaneously** - Previous by thread:
**Re: st: AW: Work with many Do files simultaneously** - Next by thread:
**RE: st: AW: Work with many Do files simultaneously** - Index(es):

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