Added toAppend() shell function to imitate >> redirect behavior