regex - Running a java program in a loop in Unix -
I have a Unix script where I get the following arguments from the command line:
Start date = $ 1 endDate = $ 2
I want to see both dates whether they are in yyyyMMdd format or not? How can I do that? If the format is wrong, then I want to exit the program.
I am running a script batch program in a script:
java commandLineJobRunner jobConfig.xml MyJob currDate = $ currDate
< P> In fact, I am passing a job parameter ie myJob
from spring batch job I want to loop up from the program like program < How do I get it? For all the dates between code> start date currDate = startDate <
and endDate
should be run.
yyyMMDD in the
startdate
in the "text"> Usage:
[["Startdate" == [0-9] [0-9] [0-9] [0-9] [0-9] [0-9] [0-9] [0-9]]] & Amp; Amp; You can use it to get the next day from $ startDate
: next day = 'date' +% Y% m% d '-d " $ StartDate next day "`
Comments
Post a Comment