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.
script:-
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 "," -f1 ./dd.csv`
y=`cut -d "," -f2 ./dd.csv`
z=`cut -d "," -f3 ./dd.csv`
. /app/sas/saslogs/CD_logs/checksum/cd.sh $x $y $z
CSV file contain three colume
- File patteren
- sources location
- destination location
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.
also need to add multiple sources location and destination location so that single csv file and script can help me multiple file transfer.
appreciate your help if any. thanks