title: Read file from .csv and pass the details to another script
body: <p>could you please help here, i have script which reading file from .csv like file pattern, sources path and destination path, then passing all details to CD script to do the file trasfer.</p>
  <p>script:-</p>
  <pre><code>FILE_PATTERN='x'
  SOURCE_PATH='y'
  DEST_PATH='z'
  FILE_LOCATION='/app/logs/CD_logs/checksum/dd.csv'
  CD_SCRIPT='/app/logs/CD_logs/checksum/cd.sh'
  
  x=`cut -d &quot;,&quot; -f1 ./dd.csv`
  y=`cut -d &quot;,&quot; -f2 ./dd.csv`
  z=`cut -d &quot;,&quot; -f3 ./dd.csv`
   
  
  . /app/sas/saslogs/CD_logs/checksum/cd.sh  $x $y $z
  </code></pre>
  <p>CSV file contain three colume</p>
  <ol>
  <li>File patteren</li>
  <li>sources location</li>
  <li>destination location</li>
  </ol>
  <p>i am looking to modify the script to find file pattern like file name contain (filename_YYYYMMDD.txt) and find last one month and pass to CD script.</p>
  <p>also need to add multiple sources location and destination location so that single csv file and script can help me multiple file transfer.</p>
  <p>appreciate your help if any. thanks</p>