What bash glob pattern matches all files and directories in the current directory except . (current directory) and .. (parent directory)?

85 views Asked by At

What is a bash glob pattern that will match all files and directories in the current directory, except for . (current directory) and .. (parent directory)?

e.g., given the following files/directories:

.
..
.my_dot_directory
.my_dot_file
my_directory
my_file

I want a glob that will return:

$ ls -d <my_glob>
.my_dot_directory
.my_dot_file
my_directory
my_file
0

There are 0 answers