SyntaxFix
Write A Post
Hire A Developer
Questions
This is similar to user2533809's answer, but each file will be executed as a separate command.
#!/bin/bash names="RA RB R C RD" while read -r line; do echo line: "$line" done <<< "$names"