A little understanding of how *nix pipes work would help.
In short the '>>' pipe operator will append lines to the end of the specified file,
where-as the single greater than '>' will empty and overwrite the file.
>清空檔案,再寫入
>>追加