From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: Filtering files in dired while invoking Date: Tue, 31 Aug 2010 18:28:56 +0300 Organization: Mivtach-Simon Insurance agencies Message-ID: <201008311528.o7VFSu0I018719@beta.mvs.co.il> References: Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1283271547 20472 80.91.229.12 (31 Aug 2010 16:19:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 16:19:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: fatkasuvayu+linux@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 31 18:19:06 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqTY6-0006zZ-AH for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Aug 2010 18:19:02 +0200 Original-Received: from localhost ([127.0.0.1]:45637 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqTY5-0003Bd-Ky for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Aug 2010 12:19:01 -0400 Original-Received: from [140.186.70.92] (port=54153 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqTXN-00035M-M1 for help-gnu-emacs@gnu.org; Tue, 31 Aug 2010 12:18:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqTXI-0006XS-Rj for help-gnu-emacs@gnu.org; Tue, 31 Aug 2010 12:18:17 -0400 Original-Received: from [193.16.147.12] (port=60855 helo=unix.mvs.co.il) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqTXI-0006Wy-7q for help-gnu-emacs@gnu.org; Tue, 31 Aug 2010 12:18:12 -0400 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.8/8.13.7) with ESMTP id o7VFSvWS013308; Tue, 31 Aug 2010 18:28:58 +0300 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.14.1/8.14.1) with ESMTP id o7VFSvqj018724; Tue, 31 Aug 2010 18:28:57 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.14.1/8.14.1/Submit) id o7VFSu0I018719; Tue, 31 Aug 2010 18:28:56 +0300 In-reply-to: (message from suvayu ali on Mon, 30 Aug 2010 12:26:58 -0700) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.109) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74845 Archived-At: On Mon, 30 Aug 2010 12:26:58 suvayu ali wrote: > > What I 'm looking for is to list files as they would be listed by, > > $ ls -l *.C *.h *.cxx The way to it in Emacs is to use {}. In your case it will be {*.C,*.h,*.cxx} or *.{C,h,cxx}. BTW. It is not an Emacs thing, but a shell one, i.e. you can write ls -al *.{jpg,gif,pcx} See the Bash man page under "Brace Expansion". Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry