i have this script
#!/bin/bash
MVAR=($(su - git -C "sftp user@xxx.xxx.xxx.xxx << EOF
pwd
EOF
" ))
echo ${MVAR[2]}
the output look like this
Connected to xxx.xxx.xxx.xxx.
Remote
how can i modify script to have
Connected to xxx.xxx.xxx.xxx.
Remote working directory: