This question already has an answer here:
File 1
P1,06/Jul/2013,09/Jul/2013
P2,06/Jul/2013,10/Jul/2013
P3,06/Jul/2013,15/Jul/2013
Ouput i want like this:
P1,06/07/2013,09/07/2013,3days
P2,06/07/2013,10/07/2013,4days
P3,06/07/2013,15/07/2013,9days
some one help is need for this please
This answer is heavily dependent on BSD date formatting available on a mac
I get the following output:
Try this another
awk
solution.Output:
With GNU awk: