Acclaimed Contributor Acclaimed Contributor
Re: Flush a file keeping last 10 lines
>Peter: There is no advantage to append a file to an empty file and destroy it afterwards.

One possible reason is to keep existing permissions and ACLs:
cat new-file > file
rm -f new-file