using ssh command
How can I use ssh command to get a file automatically from a remote server? The following command is working fine...
ssh remote-server "cat /path/to/file" > myfile
but here I have to write the output file name again. Here I am facing one problem. If I have to download some files with comman names, example file1,file2,file3...,file10, I give file*, but this will cat all the files into one output file. I want to copy all the files separately into my server along with the time stamp. In general cp -p command do this in the same server.