Re: GREP and the KERNEL.
In comp.os.linux.questions, DigitalGod wrote:
Hello All,
I want to search for different things in the Linux Kernel Source tree.
I know I can use grep but HOW do I get grep to search through EVERY
Directory and FILE to find then text I am looking for INSIDE the
Source files? Exa... main();
Read the grep(1) manpage ("man 1 grep") and look for the -R (or -r
or --recursive) option. You want something like
grep -R 'main();' /usr/src/linux
HTH
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------
.
Relevant Pages
- Re: GREP and the KERNEL.
... I want to search for different things in the Linux Kernel Source tree. ... I know I can use grep but HOW do I get grep to search through EVERY ... Source files? ... (comp.os.linux.questions) - Re: GREP and the KERNEL.
... I want to search for different things in the Linux Kernel Source tree. ... I know I can use grep but HOW do I get grep to search through EVERY ... Trevor dot Hemsley at ntlworld dot com ... (comp.os.linux.questions) - GREP and the KERNEL.
... I want to search for different things in the Linux Kernel Source tree. ... I know I can use grep but HOW do I get grep to search through EVERY ... I had grep finding every instance of main.c BUT it never looked INSIDE ... (comp.os.linux.questions) - Re: speedtouch.c will not compile
... grep header installed.rpms ... distributor "tweaks" the kernel, which is why if you do a 'grep kernel ... library, header, or possibly source files. ... (comp.os.linux.hardware) - Re: Remove non-matching pattern from text file?
... I need to spool a new text files based on the source files in its ... original text line sequence, and every line should should match the ... I need to remove all unmatching pattern from the source file. ... Newer versions of grep allow reading the patterns from a file (grep -f ... (comp.unix.shell) |
|