I have a script called " passwd_status " which gives the passwd-s status of my servers.
the script output is like below
password status for A:
abc ks 10/05/115 1 30 ps
password status for B:
abc ks 09/25/115 1 30 ps
password status for C:
abc ks 10/10/115 1 30 ps
Now , i want to write a script that for 25 days the password should change automatically. But i am finding difficulty in subtracting the dates . because the date format is like
"%m%d%1y"
. So how can i subtract this format date with current date and then compare the difference with 25 .
can anyone help me in this.