Quote:
Originally Posted by ssmiths001
I have logfile directories for each day of the week. I'm using Korn shell.
But you have a variable set to the day of the week!
logdir=/opt/batch/$1/logs/$dayofweek # on Monday you use this
logdir=/opt/batch/$1/logs/$dayofweek # on Tuesday you use this
It is the same command being executed on each day of the week. The value in $dayofweek is changing and that is all that needs to change.