Hi
Can anyone help please; I have created a simple script which transfers some files into another directory.
I need to put a whole loop around the main body.
Basically..
There will be a file which will hold a number of records.
e.g. number = 127
At the end of the script I need to reset the number to Zero in the file number.
Each time my script runs I want to check if this file has a zero init, if so I don't want it to process the next batch but instead wait. I want to do somthing like;-
if $a = 0
do
not do anything
else
do something.
Not sure which is the best loop to use for this. if, while etc. This is I think basic stuff, but not done scripting for a while. Anyone offer of help would be most appreciated.
Thanks
Can anyone help please; I have created a simple script which transfers some files into another directory.
I need to put a whole loop around the main body.
Basically..
There will be a file which will hold a number of records.
e.g. number = 127
At the end of the script I need to reset the number to Zero in the file number.
Each time my script runs I want to check if this file has a zero init, if so I don't want it to process the next batch but instead wait. I want to do somthing like;-
if $a = 0
do
not do anything
else
do something.
Not sure which is the best loop to use for this. if, while etc. This is I think basic stuff, but not done scripting for a while. Anyone offer of help would be most appreciated.
Thanks