first arg is arg 0, remote .txt from output, as it is a directory