How to stop ls from descending into directories, similar to prune for find

directoryls

If I type ls *ro* I also get files in subdirectories that match the *ro* pattern.
Is there any option for ls similar to prune?

Ideally a flag, otherwise perhaps an exec?

Best Answer

Use the -d switch:

ls -d *ro*

.....

Related Question