ls -A

Randal Schwartz merlyn at iwarp.intel.com
Tue Oct 10 07:36:48 AEST 1989


In article <6468 at ficc.uu.net>, peter at ficc (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' .??* *

Nope.  Misses the two character files beginning with dot.  And,
whatareyagonna do about that? :-)

I still like:

  grep 'pattern' `ls -A`

but that presumes you're in a place that understands -A.

Just another UNIX hacker,
-- 
/== Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ====\
| on contract to Intel's iWarp project, Hillsboro, Oregon, USA, Sol III  |
| merlyn at iwarp.intel.com ...!uunet!iwarp.intel.com!merlyn	         |
\== Cute Quote: "Welcome to Oregon... Home of the California Raisins!" ==/



More information about the Comp.unix.wizards mailing list