On 12/5/24 9:41 AM, Clark Wang wrote:
It would be easier to manipulate positional params if we can write like
`printf -v 1`.

Use an array. Use printf to write values to the array elements, then use
set -- "${array[@]}" (or "${array[@]:1}" depending on how closely you
want the array to parallel the positional parameters) to set the positional
parameters.

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to