|
From: | GNU bug Tracking System |
Subject: | bug#41004: closed (Documentation:enhancement - search for hexvalue) |
Date: | Tue, 22 Sep 2020 03:26:02 +0000 |
Your message dated Mon, 21 Sep 2020 20:25:15 -0700 with message-id <8a8edbb9-af9f-b8b3-43c3-1e22b0a54141@cs.ucla.edu> and subject line Re: bug#41004: Documentation:enhancement - search for hexvalue has caused the debbugs.gnu.org bug report #41004, regarding Documentation:enhancement - search for hexvalue to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@gnu.org.) -- 41004: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41004 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems
--- Begin Message ---Subject: Documentation:enhancement - search for hexvalue Date: Fri, 1 May 2020 19:05:28 +0200 Hi, i had the problem of searching for a non-printable character in a long list of strings. I found nothing the documentation and but several discussion how to do that where either complicated or did not fit for my case, maybe i was unlucky, ntl i found a simple solution that should be mentioned in the documentation. problem: grep for a character where only the hexcode in known. solution: use $'\xNN' then shell expands this to the required code example: printf "A\nB\nC\n" | grep $'\x41' note: that uses only printable characters, it works also with anything else except \0 (i guess). i found that solution nice, it did no require any flags etc, for my problem it worked like a charm. (i am not member of the list please reply directly to this address) . hope that helps, radisson
--- End Message ---
--- Begin Message ---Subject: Re: bug#41004: Documentation:enhancement - search for hexvalue Date: Mon, 21 Sep 2020 20:25:15 -0700 I installed the attached doc patch, which I hope addresses the issues mentioned in this bug report, and am boldly closing the bug report. User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 0001-doc-say-how-to-match-chars-by-code.patch
Description: Text Data
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |