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
As an Amazon Associate we earn from qualifying purchases.