How to add trailer record at the end of the flat file in the unix ksh shell scripting?

Hi,

How to add trailer record at the end of the flat file in the unix ksh shell scripting

can you please let me know the procedure

Regards
Srikanth

what is the desired output?
like this?

# cat file
test
# awk 'BEGIN{X="Record"}1;END{print X}' file
test
Record

Can you try like...

 awk '{print $0,"\n000000"}' test1.txt 

You could just append a line to the file...

echo "trailer record" >> filename