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
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
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
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
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]