Shell script to find no.of.days between two dates in aix server - Toolbox for IT Groups
Perl could help: export DATE1="2007-11-17 12:51:22" export DATE2="2008-11-17 18:51:22" DAYSBETWEEN=$(perl -e 'use Time::Local; my ($year1, $month1, $day1, $hour1, $min1, $sec1) = split /\W+/, $ENV{'DATE1'}; my ($year2, $month2, $day2, $hour2 ......