This is an example function:
function example { echo "TextBefore $@ TextAfter" ; }
This is the command using the function:
example A{1..5}B
The output:
TextBefore A1B A2B A3B A4B A5B TextAfter
How I want it to be:
TextBefore A1B TextAfter
TextBefore A2B TextAfter
TextBefore A3B TextAfter
TextBefore A4B TextAfter
TextBefore A5B TextAfter
That's as good as I can describe it. If you understand it and know a better way of describing it, please edit the question.
How can I make each [insert word here] in the sequence being executed separately, as shown in that example?