####################################################################### # Paul Marinsky # METR2021 # LABORATORY EXERCISE #3 (problem 1) # # Date: 11 February 2009 # Revised: 22 April 2009 # # Instructor: Kevin Goebbert # # Name: Simple foreach Loop # # Description: This script runs a simple foreach loop to echo the # variable that is placed in the loop. # # # # Modifications: New output variable added # Output for RUC forecast times modified # Revised from previous .CSH shell to .g # ######################################################################## ######################################################################## # RUN FOREACH LOOP TO ECHO FORECAST HOUR ######################################################################## set Name = "Paul Marinsky" echo "My name is ${Name}" foreach TIME(00 01 02 03 06 09 21 22 23) echo "The forecast hour is: ${TIME}" end i