Hi I have a simple question.
Is there an easy way read a date of birth from a file and calculate how old that person is based on today's date? And would I need the make sure the birthdates are enterered in a particular format?

Not to be cute, but, yes :)

As long as you know the format that you'll be entering the birthday's in your files (or multiple formats) you can extract them using any number of tools (sed, awk, etc), convert them into unix time, subtract that from the time right now (unix time again) and then convert that back to whatever format your date command allows.

Best wishes,

Mike

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.