begin quoting John H. Robinson, IV as of Mon, Sep 11, 2006 at 01:26:06PM -0700: > Carl Lowenstein wrote: [snip] > > OK, but somewhere you have lost the requirement to exclude > > "\.google\.com$" from the exclude_list. So a pipe to "grep -v" is > > called for, or else you can say "oops, I have to edit exclude_list > > before I actually use it." > > Yes, I did overlook that requirement. Update: > > $ set `lynx -dump http://www.google.com/supported_domains` > $ shift > $ while [ $1 ]; do echo "RewriteCond %{HTTP_REFERER} ^http://www$1 [OR]"; > shift; done > exclude_list
... And now you might as well put it into a file, format it so you get one statement per line, etc. etc. > No, I don't think ``oneliner'' means < 80 characters. I do think that it > includes a simple pipeline, or a simple loop. Note that the updated one > is not a simple loop, it requires setup. Namely, in the dropping of the > first item. I also think there is a reasonable upper bound of how long a > ``oneliner'' can be, usually 160 or 240 characters. Like most rules of thumb, < 80 characters is a guideline. > 80 and < 160 is in _my_ "uncomfortable" range -- I'll do it once in awhile, but it's not something I'd advertise as a one-liner. After all, too much typing means I'm likely going to make a typing error, which wastes more of my time in the long run. "Reasonable" varies per person, no doubt. -- _ |\_ \| -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
