kingandy: (Frowny)
[personal profile] kingandy
http://www.pcplus.co.uk/tips/default.asp?pagetypeid=2&articleid=5870&subsectionid=390

The "Containing Text" field of the built-in Windows XP search system only works on extensions it recognises[1]. Unless you tell it to search everything, which is an option hidden in the File Indexing service - which doesn't even have to be turned on, but the option has to be set inside it anyway.

I mean, what the fuck.

[1] In theory this is so that the system doesn't waste your time, say, looking through image files for some text. Of course any reasonable person would tell it "don't search these files" rather than "only search these other files". Quite apart from the fact that there are people out there who genuinely want to search through image files for specific characters, it's annoying because apparently ASP and PHP aren't on the list of approved file types. Because whoever would want to look for text inside one of those?

Re: Extensions suck...

Date: 2005-06-06 02:17 pm (UTC)
From: [identity profile] stsquad.livejournal.com
Which of course makes searching all files which contain text an easy* case of:

find ~/mysrc/ -xtype f | xargs file | grep "text" | perl -ne 'm/(.*):/; print "$1\n";' | xargs grep "what I look for"


*easy being by definition, didn't need to think hard about that, rather than looks pretty on the screen.

March 2012

S M T W T F S
    123
45678910
11121314151617
18192021222324
25 262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 30th, 2025 06:36 am
Powered by Dreamwidth Studios