Let's say I have a file structure that looks like this:
/ |_ file1.txt |_ file2.txt |_ subdir1 |_ subdir2 |_ subdir3
I want to list the contents of this structure, but I want to exclude everything, in all directories, except the stuff in the root. In this case, that would be
file2.txt. I know I can use
--exclude, but if I have lots of subdirectories, I would need many
--exclude calls, unless there's a way to exclude everything at once.
After running whatever command it is, I expect to see only
file2.txt because they're the only things in