awk - date problem

hi guys;

the problem is to check if file has zero record. if it is NOT empty, i want to append date to a file. my code:

nawk '{if(NR!=0) {date "+%y%m%d-%H%M%S"}}' /home/gc_sw/new.txt >> /home/gc_sw/down.txt

but it fails??:frowning:

Please don't double post questions.

Continue here: