optimize sftp progressing output

and add filter support for shell output