
June 29th, 2012, 08:02 AM
|
|
|
|
If you do not know which columns will include a date you wish to validate you are on a hiding to nothing from the start.
Assuming that you will know which columns should be dates you could do this in a few ways - using awk -F\| and having a validation function in the awk script (so you don't have to repeat code) would be a favourite.
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
|