I'm sure this has been asked a billion times, but I looked for a FAQ
and didn't find one, so here goes:
If I type 'ls p*' and I have several files that begin with 'p' and
several directories that begin with 'p' it only lists the files. But
if I type 'ls .p*' and I have several files that begin with '.p' and
several directories that begin with '.p' it will list the files AND
the contents of the directories. Two questions:
1. Why the different behavior?
2. How do I get it to only show files. I know that with ls I can
simply add the -d option, but what if I want to use 'cp .*p
<somewhere-else>' instead? How do I get the shell to expand '.p*' to
filenames and not directories as it would with 'p*'?
Thanks,
Paul
--
--------
Paul Johnson
pauljo at netcom dot com