From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: `grep' command on MS Windows with Cygwin, looking for text with Unicode chars Date: Wed, 13 Jun 2018 15:22:17 -0400 Message-ID: References: <356e7bf9-3f93-448c-a067-f6b567d5aa5a@default> <877en2edi0.fsf@telefonica.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528917653 16966 195.159.176.226 (13 Jun 2018 19:20:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2018 19:20:53 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: =?UTF-8?Q?=C3=93scar_Fuentes?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 21:20:49 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTBK5-0004Ka-7F for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 21:20:49 +0200 Original-Received: from localhost ([::1]:36498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTBMC-0003f9-DS for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2018 15:23:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTBLX-0003dc-NS for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 15:22:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTBLW-0004mP-Te for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 15:22:19 -0400 Original-Received: from mail-oi0-x230.google.com ([2607:f8b0:4003:c06::230]:38070) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTBLW-0004la-O7 for help-gnu-emacs@gnu.org; Wed, 13 Jun 2018 15:22:18 -0400 Original-Received: by mail-oi0-x230.google.com with SMTP id d5-v6so3415529oib.5 for ; Wed, 13 Jun 2018 12:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Bu5Vv75ukI1VOhW/nL4UNym9tgKGllcaCDUyR3y6BmA=; b=eimoU96Kl3TTdFRUuGyZHrdNCBBBiDhWBYml4AwlK1zfKA6avHMJQzSS/kfX0QF0TO AzzLnQ96irQZrATIryv9wPJruH2lXvJLM6D73hT8+GlHbAPJQhA5zlGXrLMyk1iR5tCt jvUlfgtk5KqqID8olMgIVjJT7fEr4YOF41hKPdxFluu2r8vF3HPT62yXG2mb/eiwIaud 07lqwrI5inDE9+8HwWf4CNmkrJXVXo4UVlm8A00qg7BsBwgaGN7OejNl7S9NVdm5Tm7j eY1NmVr4Ry15qiRDgXTX6RywztWsmJu5yGcOJYXyf1CSXqRLvyIEpNip+Bkc4/s6T1XH Lfag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Bu5Vv75ukI1VOhW/nL4UNym9tgKGllcaCDUyR3y6BmA=; b=H/KR12TZbYKWGeZgW51/JdnuWZU/mjMwCj9oFCrrG2NOVwNoLqfe7Nhk+4k4cP3QVN VMTVJrvgh73TZ+wF58WeUR/bw9kzhlZcBId56JO44i/6heumCzD06ru5jTSExBUDkYwj YTeHBqri0ySlu56s6G93Jiu/wRExnuaXG82Xzyf4z8UfM3eZgGn0784kwu3r7Ix7REnV iqRfPCMCjYzPTa44rtwY/UoSuP8BhHoYrezM7EPohPIlen0GXfPgbQHNkj11GkeKqNec TF+dD8hgnvb8mXc/Ffo6StSgNYfESjQ4AkeW2jx8lQekRfpDPauEm421fqpAi2fVncym q7iw== X-Gm-Message-State: APt69E118sgXLRLk4jSN2yfDT8DLuRJr6AMGkkJjx7PtNrAT8qnrExWf aowRRCWM8vSV1cXZ2ccl5u/ghSi7iZ8cnrfTy4U= X-Google-Smtp-Source: ADUXVKLJ6ia+geN+jAPnCOcd42sRMDtoJ3X4jgqa7gm1Q/WjnWfBp3Wims0t50kUD4S3RmDK/eA7DMlH67iIVikKxlc= X-Received: by 2002:aca:c5d5:: with SMTP id v204-v6mr4764698oif.239.1528917738143; Wed, 13 Jun 2018 12:22:18 -0700 (PDT) Original-Received: by 2002:a4a:3b84:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 12:22:17 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::230 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117147 Archived-At: On 13 June 2018 at 15:16, Noam Postavsky wrote: > On 13 June 2018 at 14:40, =C3=93scar Fuentes wrote: >> Drew Adams writes: >> >>> Is there a simple way to use `M-x grep' (e.g., giving it >>> some switches or escape chars or replacing them with hex >>> escapes or...) to search for some text that includes >>> non-ASCII Unicode chars? > >> If there is a method, I'll like to know as well. This is the main reason >> why I don't use Unicode in my source files. > > This seems to do the right with thing with the grep I have installed: > > grep "[^[:cntrl:][:print:]]" *.el Oh, just realized you probably meant "text which includes particular non-ASCII characters", not "text which includes any non-ASCII characters". Never mind me then.