1

ls: Do not show directories that match same pattern in wildcard searches, only files

view story
linux-howto

http://unix.stackexchange.com – Supposing I have something like the following, a typical business PC situation: drwxr-xr-x 1 whatever whoever 3 Oct 3 16:40 invoices2009 drwxr-xr-x 1 whatever whoever 4 Oct 3 16:40 invoices2010 drwxr-xr-x 1 whatever whoever 2 Oct 3 16:40 invoices2011 -rwxr-xr-x 1 whatever whoever 440575 Oct 3 16:40 tax2010_1 -rwxr-xr-x 1 whatever whoever 461762 Oct 3 16:40 tax2010_2 -rwxr-xr-x 1 whatever whoever 609123 Oct 3 16:40 tax2010_3 Now let's be lazy and just type: $ ls -l *2010* Supposing that there is something in the invoices2010 directory, it won't work as expected. (HowTos)