How to search for a particular word by selecting multiple text files

Hello

I have hundreads of text files and I need to search a particular word in these bunch of txt files.

How do so by selecting all files and search for the word. I do not want to open each file and search for the word.

I use Windows 7 here.

Please suggest.

Thank you...

Anand

I don't think that we are able to select the files to search, but what you can do, is have all files in a folder that is searched for.  Open a window for the folder that contains the files and use the Windows search box in the upper right of this window.  If you are looking for 'bread', enter:

content: bread

At the same time, if you want to restrict the search to the txt files, then enter

content: bread ext:txt

For more details you can read my reply to

http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/how-do-i-search-all-of-my-documents-for-a-specific/7ba6c244-07fd-4F52-988d-e2e303b4bec9

Tags: Windows

Similar Questions

  • How to search for a specific word in the code using Dreamweaver?

    I need to search for a specific word in the code for all the pages of my site. How can I do it using Dreamweaver?

    To search for local files of a Site defined in DW...

    Open the search tool & replacement with Ctrl + F

    Replace the drop-down list search in entire current Local Site

    Replace the drop-down list of search text or Source code

    Add the text to search for in the search field

    Add the replacement text in the field replace (or nothing if you just want to remove the text)

    Hit replace all

  • How to search for a particular text values separated by commas

    Hello

    I have a table for example. TB_Fruits.
    In that I have a FruitsName (Varchar) column
    In this column I store the string of values separated by commas.
    Select FruitsName in the tb_fruits;
    Result: orange, banana, Apple

    Now the question is suppose that if I try inserting one of these fruits once again name, then it must not allow me to insert.

    Suppose that now if I try to insert ('grapes, banana')
    or
    (Apple, grape")

    the orange, banana, Apple may be in any position.

    How to check if one of these names exist already or not in the fruitsname column?
    I can't use INstr function here as or. because the position is not fixed chain even not.

    Appreciate any help.

    Hmm, OK, the BASIC_LEXER in the documentation is specified is useful to "spaces separate languages". So not really a good suggestion from my side ;-)

    Okay, so a few different choices, you can play with:

    SQL> create table tb_fruits (
      2     fruitsname  varchar2(60)
      3  )
      4  /
    
    Table created.
    
    SQL> begin
      2     insert into tb_fruits values ('BANANA,APPLE');
      3     insert into tb_fruits values ('YELLOW BANANA,ORANGE');
      4     insert into tb_fruits values ('GREEN APPLE,YELLOW ORANGE');
      5     insert into tb_fruits values ('APPLE,GREEN BANANA');
      6     commit;
      7  end;
      8  /
    
    PL/SQL procedure successfully completed.
    

    Option 1:

    Make a outdated AS operator. It just won't be fast because it's more likely will be full table scan (or scan restricted index full).

    SQL> select fruitsname
      2    from tb_fruits
      3   where ','||fruitsname||',' like '%,'||'APPLE'||',%'
      4  /
    
    FRUITSNAME
    ------------------------------------------------------------
    BANANA,APPLE
    APPLE,GREEN BANANA
    
    SQL> select fruitsname
      2    from tb_fruits
      3   where ','||fruitsname||',' like '%,'||'BANANA'||',%'
      4  /
    
    FRUITSNAME
    ------------------------------------------------------------
    BANANA,APPLE
    
    SQL> select fruitsname
      2    from tb_fruits
      3   where ','||fruitsname||',' like '%,'||'YELLOW BANANA'||',%'
      4  /
    
    FRUITSNAME
    ------------------------------------------------------------
    YELLOW BANANA,ORANGE
    

    Option 2:

    Transform your data and replace the spaces with underscores. Which may or may not be a possibility for you. If your other data contains no underscores, you might fool your user interface using a view that replaces underscores with spaces when you select and a trigger before insert that replaces spaces with underscores to insert or update. Then, you can use the TEXT index.

    SQL> create table tb_fruits2 as
      2  select replace(fruitsname,' ','_') fruitsname
      3    from tb_fruits
      4  /
    
    Table created.
    
    SQL> begin
      2     ctx_ddl.create_preference('mylex', 'BASIC_LEXER');
      3     ctx_ddl.set_attribute('mylex', 'printjoins', '_-');
      4  end;
      5  /
    
    PL/SQL procedure successfully completed.
    
    SQL> create index fruitsname_idx on tb_fruits2 (fruitsname)
      2  indextype is ctxsys.ctxcat
      3  parameters (
      4  'stoplist ctxsys.empty_stoplist
      5  LEXER mylex'
      6  )
      7  /
    
    Index created.
    
    SQL> select fruitsname
      2    from tb_fruits2
      3   where catsearch(fruitsname,replace('YELLOW BANANA',' ','_'),null) > 0
      4  /
    
    FRUITSNAME
    ------------------------------------------------------------
    YELLOW_BANANA,ORANGE
    

    (I used CTXCAT rather then CONTEXT indexes to keep simple search syntax, avoid SYNCHRONIZATION problems and others. You can use CONTEXT or CTXCAT as desired.)

    Option 3:

    Transform your data in XML format instead of values separated by commas. Then create a XMLIndex.

    SQL> create table tb_fruits3 as
      2  select xmltype(''||replace(fruitsname,',','')||'') fruitsname
      3    from tb_fruits
      4  /
    
    Table created.
    
    SQL> create index fruitsname_xmlidx on tb_fruits3 (fruitsname)
      2  indextype is xdb.xmlindex
      3  /
    
    Index created.
    
    SQL> select fruitsname
      2    from tb_fruits3
      3   where xmlexists('$f/l[w="YELLOW BANANA"]' passing fruitsname as "f")
      4  /
    
    FRUITSNAME
    --------------------------------------------------------------------------------
    YELLOW BANANAORANGE
    

    (I used just 'l' for 'list of the words' and 'w' for 'word').

    Option 4:

    Create your own [url http://docs.oracle.com/cd/E11882_01/text.112/e24436/cdatadic.htm#i1008347] USER_LEXER instead of a variant of BASIC_LEXER. This would require allows you to create your own stored procedures for the index to be used, in which case you have complete control over what you set in the form of a token.

    That's the different options I can think of right now ;-)

  • regexp_substr - how to search for two different words and result based on returning a different part of the string

    Hello everyone

    I fight with this regexp_substr and I wonder if there is a way to deal with it. I have two string type in a column with the following structure:

    structure 1 always starts with "app.catalog.school.", as the following three examples

    app.catalog.school.DB.BT

    app.catalog.school.B.FTA

    app.catalog.school.ACA.CD

    structure 2 always begins with "app.catalog.admin.", as the following three examples

    app.catalog.admin.C.ABC

    app.catalog.admin.BT.AP

    app.catalog.admin.MI.RT

    If the value of the field begins with "app.catalog.school." it should return everything after the last period (.) as follows

    BT

    FREE TRADE AGREEMENT

    CD

    If the value of the field begins with "app.catalog.admin." it should return the string between the third and fourth period (.) as follows

    C

    BT

    MI

    I actually have a solution to this:

    decode)

    regexp_substr (myfield, ' [^.] +' 1, 3), 'school', regexp_substr (myfield, ' [^.] +' 1, 5), "admin", regexp_substr (myfield, ' [^.] +' 1, 4)

    )

    I am not happy with the solution above using decode(). I think I should be able to solve this problem purely with reg_exp but after hours to try again without success. You have better solution/suggestion?

    I use Oracle version 10.2. Thank you very much.

    Oops: Oracle version 10.2, here to use regexp_replace

    WITH testdata UNTIL
    (SELECT 'app.catalog.school.DB.BT' FROM DUAL str

    UNION ALL

    SELECT 'app.catalog.admin.C.ABC' FROM DUAL
    )

    Select
    Str
    , regexp_replace (str, ' ^. * (admin | school\.)) [ ^.] +)\. ([^.] +). (* $', "\2") res
    of testdata

    RES STR

    "app.catalog.school.DB.BT" 'BT '.

    'app.catalog.admin.C.ABC' 'C '.

    to 11.x, we can use regexp_substr because he has this subexpression setting more pure accident.

    WITH testdata UNTIL
    (SELECT 'app.catalog.school.DB.BT' FROM DUAL str

    UNION ALL

    SELECT 'app.catalog.admin.C.ABC' FROM DUAL
    )

    Select
    Str
    , regexp_substr (str, ' (admin | school\.)) [ ^.] +)\. ([^.] +)', 1, 1, null, res) 2.
    of testdata

    STR RES
    app.catalog.school.DB.BT BT
    app.catalog.admin.C.ABC C

    Post edited by: extended chris227

  • Is there a way to search for a specific word in a text file on an iPhone?

    I just bought an iPhone 6 Plus and have some TextEdit/RTF files in iCloud. I opened one on the phone butI cannot know how he search for a specific word or group of words. Is there a way to do this?

    Thank you.

    You open files with what app?

  • How to search for a Word document in Windows 8?

    I'm stumbling around Windows 8 that came pre-loaded on my new laptop.  I ordered Windows and Excel to be included in the package.  I saved a number of documents in Word, and now I need to get these documents for a particular.  I looked on the Internet and found a lot of no-help, that is to say, 'go in search of a file'.  Excuse me, but if I could find searching a file, I could probably find out how to search for the file, Huh?  Thus,.

    Could someone please help me with: how to find a Word document (1) and (2) where is the infamous "search"?

    I did the thing 'sweep to the right side of the screen"to get those things shadow to appear, and click on the magnifying glass (which I think the engineers forgot to change when they changed everything!) and if I wanted to search for apps, I'd be in great shape.  But his files I'm looking for, Word documents.  The designers of this 'new' version improved - well, new, in all cases seem to have forgotten those of use who use computers for productive work and not socialize or play games.

    Sorry for the hike and whining, but I'm very frustrated that the tasks that were once very simple are now extremely difficult to fill.

    It's pretty easy, at the beginning screen just type the name of your document and right it will bring the search screen and you select files (files, settings, Apps). Take a look at:

    http://Windows.Microsoft.com/en-us/Windows-8/search-apps-files-settings

  • How change the font for a particular word in RichTextFiled?

    Hi all

    I use RichtextField to display information on the screen.

    The problem is that I want to put fonts for a particular word without splitting the string.

    for example: if it is the string "I'm a Blackberry developer.

    Now, I want to define "BOLD" police "Developer of Blackberry"

    How do I do that?

    If someone of you can give me the solution.

    Would be a great help.

    Thank you

    Sumit

    You can do this mark as resolved then?

    You might also be interested in this:

    http://supportforums.BlackBerry.com/T5/Java-development/simple-HTMLTextField-implementation/TD-p/454...

  • How to search for a photo album?

    I tried several options to search for a particular album. Using the name of the album in the box search brings no results. Searching with phrases such as: "Images I edited yesterday" works in a nondeterministic way - sometimes doesn't return all results, sometimes it works as expected.

    Is there a detailed manual explaining what keywords should be used in spotlight to search for photos, including the album names?

    What words to use to refine the result of a single album?

    Way the easiest way is to show the sidebar (menu display == > display the sidebar)-right click on the 'albums' title and sort by name - then go to the album of your choice and click on it to view photos

    LN

  • need help for where and how to search for apps you want in windows store 8

    I just bought a SAMSUNG ATIV TAB 3 (XE300TZC), it has WINDOWS 8.  I went to the store Windows on my windows 8 to start the download of all my apps that I like and I found some of the apps and downloaded. But many of the apps I want to I don't think because I've noticed that it is not an option or small box for me to be able to get all the apps... I guess my question is how a search for specific applications on my STORE of WINDOWS 8?

    Hi Brandi,

    Thanks for posting your question on the Microsoft community.

    Thank you for details on the issue.

    Please see suggestions from HairyFool said on June 4, 2013 and check.
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-Winapps/how-do-i-search-the-Windows-apps-store-on-my/75390438-4DBA-4a77-93cd-aa3b2153efce

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • How to search for text in all of the PDF files on a mobile device?

    How to search for text in all of the PDF files on a mobile device?

    Not possible on mobile devices.

  • Please, give me an advise how to search for a number in a file xml (as3.0)

    Hello! Sorry for the troubling.

    Please, give me an advice how to search for a number in a file xml (as3.0)

    Thank you!

    My answer was based on your question to find numbers anywhere in the data to an xml file.  If you know that the data is digital data and the names of the nodes that contains this data, you do not have to check the characters and can only check numerical data using string values...

    function searchXMLFile(Event:MouseEvent):void
    {
    searchDisplay.text = "";
    var pageList:XMLList = xmlFileToSearch.receipt.number;
    searchDisplay.text = "false";
       
    for (var i: int = 0; i< pagelist.length();="">
    {

    If (pageList [i] == searchInput.text) {}
    searchDisplay.text = "true";
    }

    }
    }

    Even if you are looking for individual digital characters in the previous code that you would have always done by a false exit due having the line 'false' always cancel the real line...

    If (t.toString () .indexOf (m_sSearchTerm)! = - 1).

    {

    searchDisplay.text = "true";

    }

    searchDisplay.text = "false";  This will always overwrite the textfield

  • How can I convert a page typed into an editable text file

    How can I convert a page typed in an edible text file? I have a 50 page typed (on a typewriter ;-) document I want to convert (scan?) in a format so that I can then open the file in a text editing application (Word?) and edit.

    How is the most effective (and least expensive) way to do it?

    Thank you

    HAL

    < re-titled by host >

    "Edible text file?" You hear as he print on rice paper, so you can serve it up like at dinner side dish? You want someone to eat their words

    I think that the last two multifunction printers, I bought came with some kind of OCR characters (OCR) software as part of the sweeping package.  I guess that's not the greatest.

  • How to search for a word in a web page

    I wish I could do a search for a specific within the page currently displayed in the browser. Is it possible to do this in Firefox?

    Hi JossefPerl,

    Research on a page is actually very easy. You can simply press CTRL + F to use the search feature. You should take a look at the article in the Knowledge Base on How to search the contents of the current for text or links page for more information.

    Hope this helps!

  • How to search for work in one particular my external hard drive?

    I'm looking for a specific design on my external hard drive.  How can I do a search on this drive

    OK guess I wasn't too clear.  How to do a search on my external hard drive?  Or any search also.  I went to the lower left of the screen and in the box "search" I typed 'redwork.  I got was a Web site.  So, how I'm looking just my disk hard ex.?  I hope that is more clear.

    Thanks, Fredda

    You can search for files, types of files, folders, programs, text contaiined in the folders or files, but not for designs - there is no way to enter a design search.

    I'm sorry.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to search for words and phrases in multiple pdf documents

    Dear Sirs.

    I need to search for words AND phrases in a huge amount of PDF files (over 5000). The problem I found by using the "advanced search" is that I am able to search for single words sentences individual GOLD, but I need to combine a lot of words and multiple expressions in the same search. For example, if I need to look for instances of the word 'Florida' or 'Texas' or 'United States', I can't search for each PDF file that contains the word 'Florida' or 'Texas' or the phrase 'United States', since if I put 'word' in the search options, I will receive all the files that contain the word "Florida" or 'Texas' but also 'solidarity' or 'States' and simple words. I tried placing quotes in the words I need to research such as phrases, but it did not work. I would like to know if there is a way I can search the way I need.

    Thanks in advance.

    Alejandro Araujo.//

    Hello Alejandro,

    Please see this KB doc. helps Acrobat | The search for PDF files, it will be a great help.

    Kind regards

    Nicos

Maybe you are looking for

  • Finder won't erase?

    I deleted a lot of videos (files) because they were in my photos, then, even after having emptied the Recycle Bin and rebooted the computer files appear again and are able to play when you type 'Movies' in the Spotlight (order space) search. When I c

  • Pavilion 15-R253NW: replacement keyboard - warranty and manual problem

    Hello I have to face with unpleasant question. I tried to clean my keyboard and unfortunately, some of the buttons after disassembly will not 'stick' again. Under the buttons plastic ties seem to be loose and he won't keep together more. So here's my

  • Misarrange desktop icon

    I've been manually rearrange icons desktop IE8 and accidentally slipped the "My Documents" icon in the "MS Word Viewer 2003 shortcut icon". "  Now, when I click on the "MSWV" icon, it opens but all the "My Documents" folder and its contents is displa

  • Reinstall Windows 7 Family Pack 3 license X

    I have a Windows 7 Home Premium 3 X upgrade.  I upgraded a PC so far but the hard drive is faulty and I have to replace it.  I want to reinstall Windows 7 on a new HD for this PC, but I don't want to use another license; I always want to have 2 PCs m

  • Reinstall Creative Suite 5.5 Design Standard Student and teacher edition

    I need to know where the above entitled software go to the Adobe site for re.When I download and try to install the software it does not fill in the serial number. It shows the space but it only allows me to enter my serial number.I think that the pr