scp files from subdirectories only.

Hi there,

Our current directory structure is set up as follows:

-2013-09-20
	- 380134664407418202  
		- 76523.html
	- 5331257754517660  
		- 76267.html  
		- 76268.html  
		- 76269.html  
		- 76270.html  
		- 76271.html  
		- 76272.html  
		- 76273.html  
		- 76274.html
	- 571137885608264710
		- 76539.html  
		- 76540.html  
		- 76541.html  
		- 76542.html  
		- 76543.html  
		- 76544.html  
		- 76545.html

Is there a way to scp ONLY the html files from each directory above? I have tried using the following:

scp -rp <userID>@<sourceserver>:/var/vi/report/ /transfer/move/test/

and although this works, it also recreates the subdirectories as well, which I don't want or need.

We are running AIX 7.1.2.15. I am hoping someone can help out with this!

Thanks in advance.

This should work

scp -p <userID>@<sourceserver>:/var/vi/report/*/*/*.html /transfer/move/test/

Thanks for your help hergp, that is exactly what I needed.