When using a POSIX shell, the following
touch {quick,man,strong}ly
expands to
touch quickly manly strongly
In bash, you can do this:
#!/bin/bash TEST=quick,man,strong eval echo $(echo {$TEST}ly) #eval touch $(echo {$TEST}ly)
That last line is commented out but will touch the specified files.