bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63780: �ظ��º bug#63780: Reversing the grep message output type match


From: Paul Jackson
Subject: 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
User-agent: Cyrus-JMAP/3.9.0-alpha0-441-ga3ab13cd6d-fm-20230517.001-ga3ab13cd

... 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@usa.net





reply via email to

[Prev in Thread] Current Thread [Next in Thread]