After fooling around with the command line I am having trouble
understanding why I am getting the following using the “ls” and “grep”
Desktop osha top 10 violations 2014.pdf
french fry receipe public_html
hard drive return label Templates
k-birthday present.pdf Videos
eric:~> ls | grep D*
grep: Documents: Is a directory
grep: Downloads: Is a directory
eric:~> ls | grep Do*
I expected the last command to give me the output of the second command
and the second command to also include Desktop but I was wrong.
Does it have to do with the fact that “ls D*” also lists the contents of
the sub-directories of Documents and Downloads? I probably need to go
back to basics of the command line.
I am running openSUSE 13.2 using the bash shell with the Gnome Terminal.
Can anyone explain what is going on.