Bug 13871

Summary: [feature request] grep switches for excluding binary files or certain file extensions
Product: Busybox Reporter: Vadim Kantorov <vadimkantorov>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Vadim Kantorov 2021-06-27 09:55:42 UTC
These are useful for recursive grepping to avoid (slow and useless) printing spurious matches in binary files (such as images).

OpenBSD grep supports "-I" to ignore binary files: https://man.openbsd.org/grep.1

FreeBSD grep supports both "-I" and "--exclude": https://www.freebsd.org/cgi/man.cgi?query=grep&sektion=&n=1