Script to validate dates inside a file

Hi All,

Looking forward a script with below requirement.Please let me know if any pointers.

  • there is a file which contains date
  • script will go inside the file and validate date is T-1 and for Friday T-3
  • Send email with status
    -Shell is Ksh

Please show what you have tried so far.

2 Likes

Thanks for your response.

I am really confused from where i should start .

File contain looks like below, i need to pick the date and compare with system date whether it's T-1 or not from Tuesday to Friday and on Monday T-3

cat ABC.txt
fdhf fdhg r

20/02/2015
fhbredsfie