On Wed, 19 Apr 2000, SoloCDM wrote:

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

[ $ANS = [Yy] ]

or if you want to check if the response just STARTS with Y or y,

[ $ANS = [Yy]* ]

rday


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

Reply via email to