On Wed, 19 Apr 2000, SoloCDM wrote:

> Can the following bash script "if" statement be shortened/condensed?
> 
>      if [ "$MANS" = "y" ] || [ "$MANS" = "Y" ]
> 
> *********************************************************************
> Signed,
> SoloCDM
> 

  if [ $MANS = 'y' -o $MANS = 'Y' ]

It's a bit shorter. I'm assuming that $MANS is a variable and if so you
don't want the qoutes around it. Although ${MANS} would be correct.

Steve

--
Steve Feehan                         Phone: 785-532-6350x44 
System Administrator                 Fax:   785-532-7533
Computing and Information Science    ICQ:   9751775
Kansas State University              http://www.cis.ksu.edu/~steve/


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to