I'm pretty inexperienced to globbing in general. How would one go about writing a glob pattern that matches filenames not starting with, say, "ab" but still need a length of at least 2? i.e. "start with something 2-letter string other than "ab"" This is a homework question, and only basic bash globs are allowed, and must work with "echo <glob here>".
Note: the question verbatim is
(Non-hidden) files in the current directory whose names contain at least two characters, but do not start with ab.
printed on paper. I'm pretty sure I didn't misunderstand anything. The requirements are
For each of the following file search criteria, provide a globbing pattern that matches the criterion. Your answer in each case should be a text file with the following format:
echo <pattern>
My current attempt is echo {a[!b]*,[!a.]?*}
but somehow it gets no points with the automatic grader which actually runs your file against a test case automatically without human intervention.