S, and runs egrep on each of them for the pattern myregularexpression. This searches the current directory for files ending with. Īdd "-w" to avoid catching words in which your search term is a substring. If you have GNU grep (as virtually all Linux distributions do) then you can take advantage of its "recursive" flag:Įgrep -r -include "*." "myregularexpression". name '*.' | xargs egrep -n "myregularexpression" exec grep -with-filename myfunction '' \ įind. the most basic way to do so is to use a combination of the grep (or egrep) and find` commands įind. Where to start? As you read through the code, you'll need many times to lookup the declaration or definition of this or that particular data structure, macro or function. You're now ready to edit the kernel source code or browse it to learn. The alternative, more "classic", way to download a kernel source tree release is to pull it from as a compressed archive file. If you want to download the lastest kernel source, you need git. Once you're set on using a particular editor, you will need to download the kernel source tree you want to work with. Generally, text editors written for programmers are programmable and have features such as syntax highlighting, text folding, brace matching, and easy integration with source management tools, such as make(1), cvs(1), text reformatting, man page lookups, and more. Popular choices are emacs and any vi clone, vim being the most widely used these days. Perhaps the most important tool is a good programmers's text editor. This page is meant to provide you with pointers to the most commonly used tools to make your first forays in kernel-land as productive as possible. When dealing with a source base as large as the kernel, it certainly helps to have software tools to help understand how the pieces fit together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |