From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: find-grep and complicated patterns Date: Wed, 13 Dec 2006 03:35:07 +0100 Message-ID: <457F66DB.7050303@student.lu.se> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165977322 10334 80.91.229.10 (13 Dec 2006 02:35:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2006 02:35:22 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 13 03:35:19 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuJxl-0000LP-Rx for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2006 03:35:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuJxl-00018K-DA for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2006 21:35:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuJxZ-000181-M6 for emacs-devel@gnu.org; Tue, 12 Dec 2006 21:35:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuJxX-00017d-IL for emacs-devel@gnu.org; Tue, 12 Dec 2006 21:35:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuJxX-00017U-Dd for emacs-devel@gnu.org; Tue, 12 Dec 2006 21:35:03 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GuJxW-0002T8-Si for emacs-devel@gnu.org; Tue, 12 Dec 2006 21:35:03 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:60051 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GuJxU-0003jz-9S for emacs-devel@gnu.org; Wed, 13 Dec 2006 03:35:01 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: Emacs Devel X-Antivirus: avast! (VPS 0657-2, 2006-12-12), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1GuJxU-0003jz-9S. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1GuJxU-0003jz-9S 0f31e99bf68ff5a551ef995b8703d1d4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63664 Archived-At: find-grep is useful, but a bit hard with complicated patterns. How do you for example do something like this: find . -name "*.el" -type f -print0 | xargs -0 -e grep -nH -e "aaa bbb" where there is a space in the pattern? The above does NOT work! Is this platform dependent? (On w32 you may use Cygwin or Gnuwin32+cmd.exe here.)