topical media & game development

talk show tell print

basic-shell-03-myls2.sh / sh



  
  # Another example to look at files in a directory and
  # print out the file names.
  
  for filename in *
  do
      # Show the amount of bytes in each file
      # with the file name. The wc command
      # outputs both.
      wc -c 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.