©2018 by Zach Pfeffer


Find "eth0" in all "*.dt*" files

February 27, 2018


Post Description


This posts gives a fast and a slow way to find eth0 in all "*.dt*" files under the current directory. You may use this to find the string "eth0" in device tree files. 


Fastreal    0m0.139s
user    0m0.067s
sys    0m0.075s



real    0m2.432s
user    0m1.816s
sys    0m0.639s

Command Line Options Explained




Print the file name for each match. This is the default when there is more than one file to search.


Ignore case distinctions, so that characters that differ only in case match each other. Although this is straightforward when letters differ in case only via lowercase-uppercase pairs, the behavior is unspecified in other situations. For example, uppercase “S” has an unusual lowercase counterpart “ſ” (Unicode character U+017F, LATIN SMALL LETTER LONG S) in many locales, and it is unspecified whether this unusual character matches “S” or “s” even though uppercasing it yields “S”. Another example: the lowercase German letter “ß” (U+00DF, LATIN SMALL LETTER SHARP S) is normally capitalized as the two-character string “SS” but it does not match “SS”, and it might not match the uppercase letter “ẞ” (U+1E9E, LATIN CAPITAL LETTER SHARP S) even though lowercasing the latter yields the former.

-y is an obsolete synonym that is provided for compatibility. (-i is specified by POSIX.)





Input file names are terminated by a null character instead of by whitespace, and any quotes and backslash characters are not considered special (every character is taken literally). Disables the end of file string, which is treated like any other argument. 




Print the entire file name on the standard output, followed by a null character.


 Good Google search to find command line options:

"site:gnu.org grep"


Machine MHz



Tux from link (found via Google image search).

Please reload

Our Recent Posts

Business Classifications from Sandia National Laboratories

March 24, 2020

"Guidance for Completing the Company Commercialization Metrics Survey" from NASA 2020 SBIR/STTR

March 21, 2020

Army 20.1 SBIR TABA Funding Clarification: is $5k "On Top" of the $167,500 Available?

February 18, 2020

Please reload


Please reload