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?
/dir/companies/*was some sort of "compX" naming convention, so I globbed for "everything" - this may not be correct, but I did assume this. – drewrockshard Aug 24 '10 at 15:03findare much better in this respect. – EEAA Aug 24 '10 at 15:05forloop +array. I wouldn't use the find command, but some people prefer it. – drewrockshard Aug 24 '10 at 15:07