help-bash
[Top][All Lists]
Advanced

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

Re: Setting two variables based on condition


From: Mike Jonkmans
Subject: Re: Setting two variables based on condition
Date: Thu, 8 Apr 2021 09:33:06 +0200

On Thu, Apr 08, 2021 at 08:11:33AM +0200, michael-franzese@gmx.com wrote:
> Is this the way to set two variables "at" and "gf" when condition is true.
> 
> [[ "$dsattr" == "attrib" ]] && at="$gf" && gf=""

[[ "$dsattr" == "attrib" ]] && at="$gf" gf=""


Regards, Mike Jonkmans



reply via email to

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