I want to remote copy a directory (multiple actually but this is a simple example), but I want it to NOT copy any .dat files that it find the there.
I am currently using:
scp -r remotemachine:/directory .
But my .dat files are large and so I would rather not include them in the copy.
Thanks.