1

How to find the date format

view story
linux-howto

http://www.unix.com – I have a requirement where the user send a file. If the file is empty they put datetimestamp(YYYYMMDDHH:MM:SS) otherwise they would be data. I can do cat and get whats in file but how can I see if the data is date timestamp. In short, if format(data in file) = YYYYMMDDHH:MM:SS then 'false' else 'true' how do i find format(data in file) = YYYYMMDDHH:MM:SS (HowTos)