best indirect assign of scalar and array variables

2009-05-06 Thread J. Greg Davidson
What's the best way to update a variable indirectly, e.g. when its name is passed to an update function? Since I wrote the functions below some time ago and I've wondered whether there might be a better way. It would be nice if indirect parameter assignment was as easy as indirect parameter acces

Re: grep remove "no such file or directory"

2009-05-06 Thread Andreas Schwab
Greg Wooledge writes: > If your actual problem is "Find all the files containing the string > StateRB, and suppress all error messages", then use this: > > find . -type f -exec grep -l StateRB {} \; 2>/dev/null Or with a recent version of find (also POSIX): $ find . -type f -exec grep -l StateR

Re: grep remove "no such file or directory"

2009-05-06 Thread Greg Wooledge
On Wed, May 06, 2009 at 04:03:51PM +0200, Roman Rakus wrote: > On 05/06/2009 02:14 PM, cseguino wrote: > > $ find . | xargs grep -v "No such file or directory" | grep "StateRB" > > grep: > >./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-base/Copy: > >No such file or

Re: grep remove "no such file or directory"

2009-05-06 Thread Mike Frysinger
On Wednesday 06 May 2009 10:03:51 Roman Rakus wrote: > On 05/06/2009 02:14 PM, cseguino wrote: > > $ find . | xargs grep -v "No such file or directory" | grep > > "StateRB" grep: > > ./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-bas > >e/Copy: No such file or directory

Re: grep remove "no such file or directory"

2009-05-06 Thread Mike Frysinger
On Wednesday 06 May 2009 08:14:03 cseguino wrote: > $ find . | xargs grep -v "No such file or directory" | grep "StateRB" > grep: > ./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-base/ >Copy: No such file or directory > grep: of: No such file or directory > gr

Re: grep remove "no such file or directory"

2009-05-06 Thread Roman Rakus
On 05/06/2009 02:14 PM, cseguino wrote: Hello, I'm executing the following command using cygwin : $ find . | xargs grep -v "No such file or directory" | grep "StateRB" grep: ./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-base/Copy: No such file or directory

grep remove "no such file or directory"

2009-05-06 Thread cseguino
Hello, I'm executing the following command using cygwin : $ find . | xargs grep -v "No such file or directory" | grep "StateRB" grep: ./Tiger/codebase/netmarkets/jsp/ext/eurocopter/tiger/change/.svn/text-base/Copy: No such file or directory grep: of: No such file or directory gr