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 < currDate = startDate <

How do I get it? For all the dates between code> start date and endDate should be run.

Div>

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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -