"And" extended matching operator

2012-11-28 Thread Nikolai Kondrashov
Hi everyone, Would it be possible to add another extended matching operator to already supported ones? It's just we have "or" in @() and "not (or)" in !(), but no "and". And combining patterns without it is awkward. If I want to say "a and not b", I have to write "not (not a or c)", like this:

Re: "And" extended matching operator

2012-11-28 Thread Nikolai Kondrashov
On 11/28/2012 04:58 PM, Nikolai Kondrashov wrote: Would it be possible to add another extended matching operator to already supported ones? It's just we have "or" in @() and "not (or)" in !(), but no "and". And combining patterns without it is awkward. If I want to say "a and not b", I have to w

Cron jobs, env vars, and group ID ... oh my

2012-11-28 Thread Mun
Hi, I need to run a script via cron that in turn launches a script to set up the requisite environment variables needed for a successive script that is called. Moreover, I need to change my group ID in order for the scripts called within the cron job to run properly. I have included a representat

Re: Cron jobs, env vars, and group ID ... oh my

2012-11-28 Thread Greg Wooledge
On Wed, Nov 28, 2012 at 09:10:02AM -0800, Mun wrote: > I need to run a script via cron that in turn launches a script to set up the > requisite environment variables needed for a successive script that is called. > Moreover, I need to change my group ID in order for the scripts called within > the

Re: Cron jobs, env vars, and group ID ... oh my

2012-11-28 Thread Bob Proulx
Mun wrote: > #! /bin/bash > newgrp group1 > id -g -n // This shows my login group ID, not group1 The 'newgrp' command spawns a new child shell. After that child shell exits the new group evaporates. The rest of the script continues with the previous id. This is a common misunderstan

Re: Cron jobs, env vars, and group ID ... oh my

2012-11-28 Thread Mun
Hi Greg, Bob, Thanks for your replies. Please see my comments below. On Wed, Nov 28, 2012 at 09:50 AM PST, Greg Wooledge wrote: GW> On Wed, Nov 28, 2012 at 09:10:02AM -0800, Mun wrote: GW> > I need to run a script via cron that in turn launches a script to set up the GW> > requisite environment