Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!haven!ames!lll-winken!uunet!vsi!friedl From: friedl@vsi.COM (Stephen J. Friedl) Newsgroups: comp.unix.wizards Subject: Re: filename substitution question Message-ID: <1083@vsi.COM> Date: 5 Apr 89 14:00:32 GMT References: <1627@ncar.ucar.edu> <15131@bellcore.bellcore.com> Distribution: usa Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 21 [ how do we list all files *except* mentioned ones? ] In article <15131@bellcore.bellcore.com>, tr@madeleine.ctt.bellcore.com (tom reingold) writes: > While everyone's solutions have been more elegant than mine, I think > I should post the most obvious one. > > ls | grep -v frog.c > Be careful here. Many versions of ls columnize their output, so the above will exclude everything that appears on the same line as the mentioned file. This can happen either by ls's default action or by aliases or shell functions defined by {/etc/,.}profile. Steve -- Stephen J. Friedl / V-Systems, Inc. / Santa Ana, CA / +1 714 545 6442 3B2-kind-of-guy / friedl@vsi.com / {attmail, uunet, etc}!vsi!friedl "I do everything in software, even DMA" - Gary W. Keefe (garyk@telxon)