The trick is to use variables to make the process flexible.
Trick?
You mean like i
already did?
See
$alpha $bravo $charlie above.
After 3 days,
that's your reply? I'm worried about you man.
(anyway, reread my post i guess... and answer the question i asked... etc.)
EDIT:
Wish you had posted your exact script there (instead of "something like"), but... one possibility is that you simply need (soft) quotes around your variables.
Quoting ${partlist} doesn't help
${partlist} ??? What's that??? Show us
precisely where/how you defined/initialized these items. You're being way too abstract. If you don't post your
exact full code... how can we possibly
pinpoint the error?