help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Have Bash to do case insensitive operation on test


From: Alex fxmbsw7 Ratchev
Subject: Re: Have Bash to do case insensitive operation on test
Date: Wed, 14 Apr 2021 10:49:24 +0200

try shopt -s nocaseglob
and possibly remove the quotes inside [[

On Wed, Apr 14, 2021, 10:31 Budi <budikusasi@gmail.com> wrote:

> How to have Bash to do case insensitive operation on test:
>
> $ n=Foo
> $ [ -e "$n" ] && echo $n exist
>
> foo exist
> if it is:
>
> $ ls
> foo   bar   baz
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]