That's not something anyone is likely to be able to write 'blind'.
You can learn about 'for' loops in bash and ksh (UNIX shell scripting languages) to help create multi-line scripts. You put the names of the volumes in a file, then use the 'for' look to iterate over each volume name, then print the command you want to run with the echo command.
-JD.