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