POV-Ray : Newsgroups : povray.off-topic : Context switching : Re: Context switching Server Time
4 Sep 2024 19:20:46 EDT (-0400)
  Re: Context switching  
From: Nicolas Alvarez
Date: 23 Apr 2010 16:29:10
Message: <4bd20316@news.povray.org>
Warp wrote:
> Invisible <voi### [at] devnull> wrote:
>> Um... why? Three lines of text doesn't take "minutes" to write. And
>> that's about all it takes to search a folder for a file matching a
>> condition. (Obviously, it depends on how complicated the condition is...)
> 
>   How long does it take you to write a program which does the same thing
> as this:
> 
>     fgrep '#include "header.hh"' *.cc
> 

There could be more spaces.

grep '#include[[:space:]]\+"header.hh"' *.cc

How long would it take to write a program that can match that, taking into 
account that there could be multiple spaces?


Post a reply to this message

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