ls -A

Conor P. Cahill cpcahil at virtech.UUCP
Mon Oct 9 23:08:17 AEST 1989


In article <6468 at ficc.uu.net>, peter at ficc.uu.net (Peter da Silva) writes:
> In article <1989Oct8.212100.12355 at rpi.edu> tale at pawl.rpi.edu (David C Lawrence) writes:
> >What about
> >when I do want to grep all of the files (but not . and ..) in the
> >current directory?  Shell globbing alone is not sufficient for this
> >where .files exist.
> 
> grep 'pattern' .??* *

This doesn't handle the case of the .[single letter that is not a dot] case.

On system V you could use:

	grep 'pattern' .[!.]* ..?* *




-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.unix.wizards mailing list