File names listing question
I'm learning how to filenames, for instance, all file names starting with 'a', is echo [a]*
All names starting with a and containing three characters, I deduced was [echo]??
All names starting with 'a' but ending with a non a character is echo [a]* | echo *[b-z]
I figured that out but here is where it get's tricky for me, how would one list all filenames that begin with 'a' but not 'aa'?
Then how would one go about creating a file named 'result' that has all the filenames that begin with 'a' but no consecutive 'a'?
Any help would be appreciated!