The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Article Feedback - scp tricks
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Using wildcards/file list on remote side
Author: Gaspar Chilingarov 
Date:   10-03-03 13:23

This also will do good job for you!


scp user@remotehost:'`echo foo*bar[0-9]`' ./

note the backtriks passed to remote host - you can run any command with this. like

scp user@remotehost:'`find / -mtime -1`' ./

will copy all files which are modified less than in one day to local side.

But also - take care when using this method. Files with same names, but located in different directories will override each other.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Using wildcards/file list on remote side   new
Gaspar Chilingarov 10-03-03 13:23 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org