I couldn't find a proper way to express myself fully, because of that I am deeply sorry if I make any mess.
My question is: How can I use letters a..z in a for loop in bash?
#Aim is to list commands are the directory /usr/bin
#!/bin/bash
cd /usr/bin
for i in {a..z}
array=($(ls --ignore=[!a]*)) #Just lists commands starting with "a"
echo ${array[@]}
#I tried to do a substitution in the below code, where may I be wrong?
#!/bin/bash
cd /usr/bin
for i in {a..z}
array=($(ls --ignore=[!$i]*))
echo ${array[@]}