ls -A

Peter da Silva peter at ficc.uu.net
Mon Oct 9 22:39:32 AEST 1989


I said,
> grep 'pattern' .??* *

Would exclude . and .. from a search.

In article <602 at buster.irby.com> rli at buster.irby.com (Buster Irby) writes:
>Sorry Peter, but you just flunked your Unix Wizards Test!

And goes on to point out that I'm skipping all 2-character names beginning
with '.', like '.a' for example.

Yes, I know that. But in practical terms '.??* *' is good enough, and a
lot easier to type. I can't recall ever seeing a file that would match
'.?'.
-- 
Peter da Silva, *NIX support guy @ Ferranti International Controls Corporation.
Biz: peter at ficc.uu.net, +1 713 274 5180. Fun: peter at sugar.hackercorp.com. `-_-'
                                                                           'U`
Quote: Structured Programming is a discipline -- not a straitjacket.



More information about the Comp.unix.wizards mailing list