Added appendTo() function to imitate '>>' redirect-and-append pipe.