I have below file which contain the date in column 3,4,5
12345 open 10/10/13 10:08 PM 3 application is in java
67899 open 12/10/13 2:31 AM 2 apps can be reach
23456 open 11/9/13 2:31 AM 4 java is OK
65432 open 12/10/13 10:07 PM 9 we are running below threshold
34568 open 11/10/13 5:42 AM 8 unix shell scripts is OK
45678 open 09/10/13 9:07 PM 7 web logic is running
we need to subtract date and time(which are in column 3,4, 5) with current date and time.. need to write difference in one column
suppose current date is "12/10/13 12:00 PM" ..then the output file should be like below
if the difference is less then a 1 day output column should say difference in hours
if the difference more then 24 hours output column should say difference in days
if the difference more then 30 days output column should say difference in month
12345 open 10/10/13 10:08 PM 3 application is in java 2 day
67899 open 12/10/13 2:31 AM 2 apps can be reach 7 hours
23456 open 11/9/13 2:31 AM 4 java is OK 1 month
65432 open 12/10/13 10:07 PM 9 we are running below threshold 1 hour
34568 open 11/10/13 5:42 AM 8 unix shell scripts is OK 1 day
45678 open 09/10/13 9:07 PM 7 web logic is running 3 days
please provide me the code in shell ..i need your help..plz