UNIX 'ls' command - wildcard 'OR' operator UNIX 'ls' command - wildcard 'OR' operator unix unix

UNIX 'ls' command - wildcard 'OR' operator


Providing you're wanting to match exact dates (which it appears you are), the way to so with bash expansion is:

ls -l *201206{19,20,21}*


ls does not do this - the shell expands * etc and then passes them to ls as arguments.

Look at the documentation for the shell - it is call globbing