One of my system have bash version 2.05.8, which is quite older. Now on this machine ii tried to use for loop in following format
for i in {a..z}
But this gives , Please suggest the right statement
|
One of my system have bash version 2.05.8, which is quite older. Now on this machine ii tried to use for loop in following format
But this gives , Please suggest the right statement |
|||||
|
|
I'm not aware of a version of seq that works with letters. Do you have perl available? In that case:
I got the Of course I'm assuming you need to generate dynamic slices of the alphabet, otherwise this is probably not worth the effort and you should stick to:
|
||||
|
|
|
Ranges only work for bash 3.0+ Your syntax is correct however:
|
|||