You can keep the code you wrote and just use xargs that way you will call your script multiple times with just one argument
Update: oops my bad I misread what you wrote, please disregard
In reply to Re: More Arguments
by QuillMeantTen
in thread More Arguments
by joaming
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |