I am using ksh script on AIX platform.
I am getting a DATE from input file in "YYYYMMDDHHMISS" format.
Now I want the same date in "YYYYMMDD" format into another variable.
For example,
if the DATE is 20101018121445
then I need 20101018 in another variable.
Please let me know the command to do it.
Thanks in advance.