|
Hi John,
Although I'm not exactly familiar with scp on i, I would imagine it's
very similar if not the same to scp on Linux.
What this would mean to me is:
copy a*.txt to <local directory b>
That should copy ablah.txt, afoo.txt, abar.txt, all to (local) directory
"b".
Here's an example:
[cbc@T42 ~]$ cd test
[cbc@T42 test]$ mkdir b
[cbc@T42 test]$ touch afile.txt
[cbc@T42 test]$ touch abfile.txt
[cbc@T42 test]$ touch afoo.txt
[cbc@T42 test]$ touch abar.txt
[cbc@T42 test]$ ll
total 24
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 abar.txt
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 abfile.txt
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 afile.txt
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 afoo.txt
drwxrwxr-x 2 cbc cbc 4096 Aug 17 08:48 b
[cbc@T42 test]$ scp a*.txt b
[cbc@T42 test]$ ll
total 24
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 abar.txt
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 abfile.txt
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 afile.txt
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 afoo.txt
drwxrwxr-x 2 cbc cbc 4096 Aug 17 08:49 b
[cbc@T42 test]$ cd b
[cbc@T42 b]$ ll
total 16
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 abar.txt
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 abfile.txt
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 afile.txt
-rw-rw-r-- 1 cbc cbc 0 Aug 17 08:49 afoo.txt
[cbc@T42 b]$
Does this help?
Clay Carley
Sonic.net/ Sonic Telecom
On 08/16/2013 12:04 PM, John McKee wrote:
What does scp do given the following:--
scp a*.TXT b
where there can be multiple files that start with the letter a
and
b is a directory
John McKee
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.