Add a line at the beginning of each array entry

For example, I have a=(1 2 3), and I want to receive a=(foo1 foo2 foo3). What would be a simple / clean way to get this?

+3
source share
1 answer

a=(foo$^a[@])

+4
source

Source: https://habr.com/ru/post/1758625/


All Articles