POV-Ray : Newsgroups : povray.off-topic : Context switching : Re: Context switching Server Time
5 Sep 2024 01:25:17 EDT (-0400)
  Re: Context switching  
From: Invisible
Date: 22 Apr 2010 04:12:03
Message: <4bd004d3$1@news.povray.org>
>> I throught that grep is an overly-complicated way of searching for the
>> location of a string within one particular file? (I usually just use my
>> text editor's "search" function.)
> 
> Does your editor support regular expressions?   Most only support a 
> simple substring search.

Is there some advantage to supporting regular expressions?

I mean, I realise that hypothetically a regex can find things that a 
normal search can't. But in reality, when are you *ever* going to use 
that? What would it be useful for?

> As Warp said, you also can traverse a directory structure with grep to 
> find the file(s) that have the string in them.

I didn't know that. I thought grep was just for searching within one file.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.