Announcement

Collapse
No announcement yet.

Tool for searching part of word in a LOT of txt/html (VERY URGENT)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tool for searching part of word in a LOT of txt/html (VERY URGENT)

    The deal: I have hundreds of txt and html files, some of them quite large (so I'm afraid that Google Desktop Search doesn't catch everything I need). I need a tool that will let me do quick search in all these files, in this manner:

    searching for "xam" will bring both "example" and...uhmm, exam, and so on(any other words that follow this...example? )

    It is extremelly urgent and important, I'll be very thankfull for help.

    PS. The tool should be small, I have only acces to cafe with small download.

  • #2
    I would have said textpad (www.textpad.com), but that's 2 mb...
    There's an Opera in my macbook.

    Comment


    • #3
      Oh, if it's really just text files, the windows search function should be able to search for strings.
      There's an Opera in my macbook.

      Comment


      • #4
        grep. Google for "grep for windows" to find a windows build (I use cygwin already).

        "grep -nrI xam *"
        Prints line number, ignores binary files (so it searches text files), and recursively searches files in your directories.
        Gigabyte P35-DS3L with a Q6600, 2GB Kingston HyperX (after *3* bad pairs of Crucial Ballistix 1066), Galaxy 8800GT 512MB, SB X-Fi, some drives, and a Dell 2005fpw. Running WinXP.

        Comment


        • #5
          Used to use something called "Search and Replace 98" or somesuch. Just googled it, and apparently it's still around: http://www.htmlworkshop.com/

          V. good, powerful, and friendly to use.

          Edit: direct download (350k): http://www.htmlworkshop.com/srhtml98-i30.exe
          Last edited by GNEP; 17 April 2006, 15:44.
          DM says: Crunch with Matrox Users@ClimatePrediction.net

          Comment


          • #6
            I'll second Textpad...It's cousin, Wildedit can also be useful.

            of course, a search of all relevant files like this:

            Code:
            @echo off
            cd \
            mkdir codesearch\scratch
            dir /s /b *.htm>c:\codesearch\scratch\htm.log
            dir /s /b *.html>c:\codesearch\scratch\html.log
            dir /s /b *.txt>c:\codesearch\scratch\text.log
            type c:\codesearch\scratch\htm.log>c:\codesearch\fullist.log
            type c:\codesearch\scratch\html.log>>c:\codesearch\fullist.log
            type c:\codesearch\scratch\text.log>>c:\codesearch\fullist.log
            for /f (eol=; tokens=1*; delims=) %%a in (c:\codesearch\fullist.log) do (findstr -l "xam")
            Will do the trick (on every stinking *.htm, *.html, and *.txt files in your hard disk): the question is what do you want to do with this information? Do you want to replace parts of the document or merely identify it?

            Textpad is likely going to be your solution as it supports Macros.
            Last edited by MultimediaMan; 17 April 2006, 16:05.
            Hey, Donny! We got us a German who wants to die for his country... Oblige him. - Lt. Aldo Raine

            Comment


            • #7
              Agree with Wombat.

              grep really is the easiest way to do this. It can handle large files as it doesn't load the whole thing into memory to read it.
              Gigabyte GA-K8N Ultra 9, Opteron 170 Denmark 2x2Ghz, 2 GB Corsair XMS, Gigabyte 6600, Gentoo Linux
              Motion Computing M1400 -- Tablet PC, Ubuntu Linux

              "if I said you had a beautiful body would you take your pants off and dance around a bit?" --Zapp Brannigan

              Comment


              • #8
                I think that grep is what I used in my Uni days. It was fast and thorough.
                P.S. You've been Spanked!

                Comment


                • #9
                  Originally posted by MultimediaMan
                  findstr
                  Well I'll be darned.
                  Learn something new every day.
                  Chuck
                  秋音的爸爸

                  Comment


                  • #10
                    I third grep. Use it all the time for these kind of purposes, and it's very fast & small

                    Comment


                    • #11
                      Thanks for suggestions (and it somehow turned out not that horribly urgent...but still, somewhat). I hope they'll work for me (and I hope I won't have problems with trying them later today while beeing offline - my computer isn't connected to the net unfrotunatelly...)

                      Comment

                      Working...
                      X