I want to transfer particular types of files from directory on server. So here is the scene:
The directory structure is
companies/compA/filedir/
companies/compB/filedir/
companies/compC/filedir/
So I want to move *.csv files from filedir directories from each company to other server. I want to use ssh for file transfer. Has anyone used ssh for file transfer in shell script? How do you handle this situation?