help-bash
[Top][All Lists]
Advanced

[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 12:54:17 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Mon, Feb 22, 2021 at 02:15:24PM +0000, Chris Elvidge wrote:
> [ "$3" ] && N="${3^}" && [ "$N" = "T" ] && remove_file=true

Or:

case $3 in [Tt]) remove_file=true;; esac

Or:

[[ $3 = [Tt] ]] && remove_file=true

Or a few other ways, depending on the target shell.




reply via email to

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