GNU bug report logs - #63780
Reversing the grep message output type matching binary files (without the -a option added) changed from stdout to stderr

Previous Next

Package: grep;

Reported by: "2773414454" <2773414454 <at> qq.com>

Date: Mon, 29 May 2023 04:56:02 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #29 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Paul Jackson" <pj <at> usa.net>
To: bug-grep <at> gnu.org
Subject: Re: bug#63780: �ظ��º bug#63780: Reversing the grep message output type matching binary files (without the -a option added) changed from stdout to stderr
Date: Mon, 29 May 2023 22:44:26 -0500
... or if you're really just looking for which files to backup, based on the contents of those files matching some regex pattern, consider using the "grep -l", aka "grep --files-with-matches", option.  It might be a wee bit faster or less consumptive of file system buffers on large files that have at least one match early on, and based on my 20 seconds of testing just now, it (grep -l) examines all files, whether binary or not, unlike the default grep, which without the -l option chooses not to search binary files, and complains (now on stderr) instead.

-- 
                Paul Jackson
                pj <at> usa.net




This bug report was last modified 1 year and 357 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.