linux

warning: Creating default object from empty value in /homepages/34/d93266176/htdocs/el-badawy/modules/taxonomy/taxonomy.pages.inc on line 33.

GNU make

Useful command-line options for GNU make

-n : Print the commands, but do not execute them
-e : variables from the environment take precedence
-d : print debugging info

How to use find

  • Finding all files containing string "get_map"
    $ find . -name *.c | xargs grep -l get_map
  • A more sophisticated use:
    $ find . -name '*.[ch]' -print0 | xargs -r -0 grep -l get_map

    find: -print0
    xargs: -0 -r

  • on Cygwin, Windows file are usually case insensitive, one might need/want to make the search case-insensitive using the -iname option
    $ find /cygdrive/c/WINDOWS/Microsoft.NET -iname "msbuild.*"
Syndicate content