Wildcards in "Find in files" Directory field

2012-12-12
2012-12-29
  • Gleb Stsenov

    Gleb Stsenov - 2012-12-12

    Hello,
    searched in forums, but questions for "wildcard" are usually about regex.
    My question is: how could I search for smth only in directories which match my wildcard pattern?
    I.e. I have following dir structure:
    c:\aaa\a.txt
    c:\aba\a.txt
    c:\bbb\b.txt
    c:\baa\b.txt
    I would like to search/replace in *.txt which are located in folders which name begins from "b". It could be "c:\b*\" in directory field.
    I tried it, but it doesn't work :(
    Have I missed smth, or it should become a feature request?
    Thank you.

     
    Last edit: Gleb Stsenov 2012-12-12
  • Fool4UAnyway

    Fool4UAnyway - 2012-12-12

    You could use Text Crawler for this.

    www.digitalvolcano.co.uk/content/textcrawler

    You could perform a "simple" search for *.txt files in C:\ and it subfolders.
    You could then manually select all found files that are in folders that start with "b".
    Then you could perform you replace action on those selected files only.

     
  • cchris

    cchris - 2012-12-29

    The problem is with what the command shell understands. If Windows had the basic wildcard capabilities of any Unix-like shell, your trick would work. But it can't. Unless you manage to get a Cygwin shell to replace cmd.exe, but that's a heavyhanded hack :) . Or 4DOS (payware :( )

    CChris

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks