Comma seprated array list

Hi,
I want to execute perforce command using comma separated multiple changelist in a single variable,
P4_SHELV_CLIST=16754,74589,25679,89023

Once I declare perforce cl to above variable P4_SHELV_CLIST it should one by one pick the changelist and execute perforce unshelve command. I tried something like this but it does not take comma separated list

but how to exit the script when user has entered wrong changelist, say cl 25679 is wrong, perforce throws message “//p4_shelved_CL--847463304/... - no such file(s).”, this message will come when following perforce command will be executed

$? return variable will not work as the message generated by Perforce command will always return true (0) because it is not Error it is informing user about changelist, grep command is also not working I used it like this:

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Background
Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc...
As a "Unix" shop, our only readily …

Learn several ways to interact with files and get file information from the bash shell.
ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…

Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…