I am trying to traverse all directories under the current directory using a shell script. In each of those sub directories, there is a makefile and I want to execute it. Any idea how to do ?
I am trying to traverse all directories under the current directory using a shell
Share
Try with find :
That will find every file named
makefile(or Makefile, or whatever different case for word makefile, thanks to thiton) (recursively) and then launch make against it.