niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » shell
scp match filenames on server
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Icarus Sparry
*nix forums Guru


Joined: 19 Feb 2005
Posts: 342

PostPosted: Sat Feb 19, 2005 2:38 am    Post subject: Re: scp match filenames on server Reply with quote

On Fri, 18 Feb 2005 22:22:34 +0000, Gnarlodious wrote:

Quote:
I have been saying something like this to snarf my logfiles:

scp -2
$user@$server:/var/log/httpd/\{gnarlodious_access_log.1107993600.gz,spectrum
ology_access_log.1107993600.gz,murraysfalafel_access_log.1107993600.gz\}
/private/tmp

Is there a regex or wildcard solution to shorten the command? The server
shell is running tcsh.

scp -s $user@$server:/var/log/httpd/\{gnarlodious,spectrumology,murraysfalafel\}_access_log.1107993600.gz

looks shorter to me.
Back to top
Gnarlodious
*nix forums beginner


Joined: 19 Feb 2005
Posts: 32

PostPosted: Fri Feb 18, 2005 9:22 pm    Post subject: scp match filenames on server Reply with quote

I have been saying something like this to snarf my logfiles:

scp -2
$user@$server:/var/log/httpd/\{gnarlodious_access_log.1107993600.gz,spectrum
ology_access_log.1107993600.gz,murraysfalafel_access_log.1107993600.gz\}
/private/tmp

Is there a regex or wildcard solution to shorten the command? The server
shell is running tcsh.

-- Gnarlie
http://Gnarlodious.com/Cogent/
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 11:31 pm | All times are GMT
navigation Forum index » Programming » shell
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Transfer qmail email account to postfix server tallman Postfix 0 Thu Jun 05, 2008 12:43 pm
No new posts NFS server on Solaris 10 gurgle Solaris 0 Tue Sep 04, 2007 7:05 pm
No new posts Help required for configuring the VPN Server in Linux SHERDIL security 0 Sun Nov 19, 2006 2:22 pm
No new posts Need Help with Program in Perl on a Netware Server fhadzocos@gmail.com Perl 3 Fri Jul 21, 2006 1:57 pm
No new posts Problem while accessing 64 bit Server thru 32 bit client Ganesh Server 0 Fri Jul 21, 2006 1:40 pm

Loans | Bankruptcy | Personal Finance | Debt Help | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2602s ][ Queries: 20 (0.1804s) ][ GZIP on - Debug on ]