I have two type ranges which I need to get it in a single variable. How can I do that?
eg: I have one range like bs0401 to bs0405 (bs0401,bs0402,bs0403...) and another range like bn0201 to bn0205(bn0201,bn0202,bn0203..) and I need both these expansion under one variable.
I can do for single sequence like
h=$(seq -f "bs%02g" 0401 1 0405)
but not sure how can Include multiple sequence assigned in a single variable so that echo $h will given like
bs0401
bs0402
bs0403
bs0404
bs0405
bn0201
bn0202
bn0203
bn0204
bn0205
Asked by ARthur
(37 rep)
Jun 21, 2020, 04:00 PM
Last activity: Jun 22, 2020, 08:23 AM
Last activity: Jun 22, 2020, 08:23 AM