Subtract two date in unix

I Have a long file like this
123122312 05/06/12
123123456 05/06/14
I want to take the difference of dates in two lines & print difference sidewise for the whole long files.
Pl help me out.

If you take a look in our FAQ section you will see the datecalc script written by Perderabo. This will do what you want - you will need to extract the dates from your input file, format them, and then pass these as input into datecalc.

Cheers
ZB