Re: Question on 'if' in bash script

2002-07-22 Thread Ken Sorensen
p [ Hope this helps, Ken > Date: Wed, 17 Jul 2002 20:19:36 -0500 (CDT) > Subject: Re: Question on 'if' in bash script > > to access a command from within shell, enclose it in ` ` > as > for files in `cat some.list` > do > blah > etc > > On Wed, 17

Re: Question on 'if' in bash script

2002-07-22 Thread Ken Sorensen
p [ Hope this helps, Ken > Date: Wed, 17 Jul 2002 20:19:36 -0500 (CDT) > Subject: Re: Question on 'if' in bash script > > to access a command from within shell, enclose it in ` ` > as > for files in `cat some.list` > do > blah > etc > > On Wed, 17 Jul 200

Re: Question on 'if' in bash script

2002-07-17 Thread Matthew Melvin
On Wed, 17 Jul 2002 at 5:38pm (-0700), David Busby wrote: > How would I construct the "if" to see if a module is loaded > > I've tried > > if [ -n "lsmod |grep $module" ] > as well as > if [ -z "lsmod |grep $module" ] > The main problem with your code is that bash doens't know the stuff in th

Re: Question on 'if' in bash script

2002-07-17 Thread Hal Burgiss
On Wed, Jul 17, 2002 at 05:38:26PM -0700, David Busby wrote: > How would I construct the "if" to see if a module is loaded > > I've tried > > if [ -n "lsmod |grep $module" ] > as well as > if [ -z "lsmod |grep $module" ] > > I can't get either to work...what am I doing wrong? lsmod |grep $modu

Question on 'if' in bash script

2002-07-17 Thread David Busby
How would I construct the "if" to see if a module is loaded I've tried if [ -n "lsmod |grep $module" ] as well as if [ -z "lsmod |grep $module" ] I can't get either to work...what am I doing wrong? /b ___ Redhat-list mailing list [EMAIL PROTECTED]