Sorry for the simple question, but I am new to writing bash programs.
I am trying to write this line:
for i in /etc/file*; do SOME-COMMAND $i; done
However, I need to make sure that file* can only have 2 characters after file.. Ie, "fileaa" is ok, but "fileabc" is not ok. What changes to my command would I need to make?
Thanks!