Suppose I have a .txt file in my unix database : events.txt with 3 columns and 4 records as follow:
Name DateofBirth City
Alex 2016-02-22 15:12:21.244000 London
John 2016-02-24 15:12:21.244000 Paris
Harry 2016-02-23 16:17:21.254000 Moscow
Karry 2016-02-23 11:12:21.271000 Berlin
I want to edit this table or create a new table which must contain a 4th column named as DOB_epoch (as epoch value of 2nd column DateofBirth) as follow:
Name DateofBirth City DOB_epoch
Alex 2016-02-22 15:12:21.244000 London 9632587410
John 2016-02-24 15:12:21.244000 Paris 9871236540
Harry 2016-02-23 16:17:21.254000 Moscow 9478523690
Karry 2016-02-23 11:12:21.271000 Berlin 9321456870
What should be the command in unix to create such table column?