topical media & game development

talk show tell print

basic-shell-04-myls4.sh / sh



  #!/bin/sh
  
  # Assumes $1, first command-line argument,
  # names directory to list.
  
  cd $1
  for filename in *
  do
      echo filename
  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.