topical media & game development

talk show tell print

basic-shell-app-a-exercise-04-04.sh / sh



  # Assumes each command-line argument
  # names a directory to list.
  
  for directory in *
  do
      echo "directory:"
      cd directory
      for filename in *
      do
          echo filename
      done
      echo
  done
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.