I would like to copy all files from a remote destination in a particular directory writegrid
, but not the subdirectories, e.g. the files in writegrid/output_files
.
This
scp -r [email protected]:~/writegrid/* ./
will copy the files in the writegrid/output_files
over as well.
Thank you.
Don't use the -r
flag. It tells scp
to copy recursively.