Bash: scp all files in a directory, but not the subdirectory -


i copy files remote destination in particular directory "writegrid", not subdirectories, e.g. files in writegrid/output_files.

     scp -r cory@blah.com:~/writegrid/* ./ 

will copy files in writegrid/output_files on well.

thank you.

don't use "-r" flag. tells scp recursive copy.


Comments