help-bash
[Top][All Lists]
Advanced

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

Splitting variable into two numbers


From: lisa-asket
Subject: Splitting variable into two numbers
Date: Tue, 20 Jul 2021 18:15:32 +0200 (CEST)

I would like to split a variable containing two numbers delimited by a comma 

and transfer the two numbers into two variables p and q.



Input:

var="{5,8}"



Output:

p=5

q=8






reply via email to

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