input sample:
one
two 1578678600
awk command:
$ echo -e "one\ntwo 1578678600"|awk '{print $1,strftime("%Y-%m-%d %H:%M:%S", $2)}'
one 1970-01-01 00:00:00
two 2020-01-10 17:50:00
How strftime could ignore empty fields and not print "1970-01-01 00:00:00"? The empty field is expected to be left empty after processing.