[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deleting files
From: |
Greg Wooledge |
Subject: |
Re: Deleting files |
Date: |
Mon, 22 Feb 2021 13:50:53 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Mon, Feb 22, 2021 at 07:39:08PM +0100, michael-franzese@gmx.com wrote:
> Can one do
>
> case "$3" in [Tt]) remove_file=true;; esac
> [[ "$3" = [Tt] ]] && remove_file=true
In both of those cases, the quotes are optional. Add them if you wish.
In variants that use the test or [ commands, the quotes would be
required. (Note that test and [ don't permit glob-style pattern matching,
so any such solutions would require something like "${3,}" or "${3^}" to
work at all.)
- Deleting files, michael-franzese, 2021/02/21
- Re: Deleting files, Russell Lewis, 2021/02/21
- Re: Deleting files, michael-franzese, 2021/02/22
- Re: Deleting files, michael-franzese, 2021/02/22
- Re: Deleting files, Chris Elvidge, 2021/02/22
- Re: Deleting files, michael-franzese, 2021/02/22
- Re: Deleting files, Chris Elvidge, 2021/02/22
- Re: Deleting files, Greg Wooledge, 2021/02/22
- Re: Deleting files, michael-franzese, 2021/02/22
- Re: Deleting files,
Greg Wooledge <=
- Re: Deleting files, Chris F.A. Johnson, 2021/02/22