remote file moves, over SSH, with wildcards ... help needed.

Karol Kwiatkowski freebsd at orchid.homeunix.org
Fri May 26 08:01:48 PDT 2006


On 26/05/2006 16:53, Ensel Sharon wrote:
> (FreeBSD 6.0-RELEASE)
> 
> I cannot move a file, over ssh, with wildcards:
> 
> # ssh user at host.com mv /dir/file*.wav /dir2
> ssh: No match.
> 
> Ok, so I quote it:
> 
> # ssh user at host.com mv "/dir/file*.wav" /dir2
> Password:
> mv: rename /dir/file*.wav to /dir2/*.wav: No such file or directory
> 
> I even tried single quoting both paths, and just double quoting the
> file*.wav
> 
> Nothing works.
> 
> Is it possible to move with wildcards over ssh ?

Your local shell gets the '*' first. Try escaping it with '\':

$ ssh user at host.com mv /dir/file\*.wav /dir2

HTH,

Karol

-- 
Karol Kwiatkowski  <freebsd at orchid dot homeunix dot org>
OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060526/e48ffc8e/signature.pgp


More information about the freebsd-questions mailing list