Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!ginosko!uunet!virtech!cpcahil From: cpcahil@virtech.UUCP (Conor P. Cahill) Newsgroups: comp.unix.wizards Subject: Re: ls -A Message-ID: <1249@virtech.UUCP> Date: 9 Oct 89 13:08:17 GMT References: <15@minya.UUCP> <14611@bloom-beacon.MIT.EDU> <6468@ficc.uu.net> Distribution: na Organization: Virtual Technologies Inc Lines: 23 In article <6468@ficc.uu.net>, peter@ficc.uu.net (Peter da Silva) writes: > In article <1989Oct8.212100.12355@rpi.edu> tale@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 | +-----------------------------------------------------------------------+