Issue
I am trying to SCP a file from a remote host onto local host.
The file on the remote host would be, KMST_DataFile_[MMDDYY]T[HHMM].kms
I have come up with 2 SCP commands, but I was wondering if there's a way to combine these, to only SCP file that match both the file name pattern above and the extension .kms
scp -v user@remotehost:/location/KMST_DataFile_*
scp -v user@remotehost:/location/{*.kms}
Solution
This will do your job:
scp -v user@remotehost:/location/KMST_DataFile_*.kms
Answered By - Steephen Answer Checked By - Marilyn (WPSolving Volunteer)