I am having a problem with variables that I cannot figure out. If I define a variable as PrepUpdates=/tmp/PrepUpdates, and then assign a value --> grep Start PREP.LOG | tail -1 > $PrepUpdates, when I echo $PrepUpdates, all that is returned is /tmp/PrepUpdates.
I have verified that the variable has a value assigned to it in the temp directory, I just can't seem to use that value throughout the script. Any help would be greatly appreciated.
Dear Gary Penner,
Yes, its becacuse you assign file name in $PrepUpdates and when you apply this commandOriginally Posted by Gary Penner
# grep Start PREP.LOG | tail -1 > $PrepUpdates
It will only update this file which is /tmp/PrepUpdates