title: how to navigate to subdirectories in a shell script
body: <p>I am having a directory.This directory has a lot of subdirectories which contain html pages and some c source code files,Makefiles etc etc.The script I am trying to write would be executed from one directory which has all these subdirectories.
  Following is the set of directories and files you can see</p>
  
  <pre><code>ls
  delete.sh  lddbus   Makefile      misc-progs  sbull  scullc  scullp  short       simple  snull  usb
  include    LICENSE  misc-modules  pci         scull  sculld  scullv  shortprint  skull   tty
  </code></pre>
  
  <p>Some of them are directories and some are files in the subdirectories above there are further subdirectories and html pages also which I want to eliminate.
  The manual way would be do go to each directory and remove the pages via following command</p>
  
  <pre><code>rm *.html*
  </code></pre>
  
  <p>Since the html page has name ending with <code>?=/something</code>  sort of names.
  So I decided to write a shell script.
  But what I am not clear is how will I take directory names as arguments in my shell script.If I decided to use a for loop or some thing similar.
  In this case what should I be doing?
  I do not want to use </p>
  
  <pre><code>find . -name '*.html*' -exec rm -f {} \;
  </code></pre>
  
  <p>As I am doing this for learning purpose.</p>