help-bash
[Top][All Lists]
Advanced

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

Re: Splitting variable into two numbers


From: Greg Wooledge
Subject: Re: Splitting variable into two numbers
Date: Tue, 20 Jul 2021 14:26:32 -0400

On Tue, Jul 20, 2021 at 08:20:29PM +0200, lisa-asket@perso.be wrote:
> The multi-input is always enclosed within braces with no whitespaces.
> Thus "{5,8}", "{13,21}"

p=${input%,*} p=${p#\{}
q=${input#*,} q=${q%\}}

This still sounds like either an X-Y, or homework.



reply via email to

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