Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2006 11:14:52 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Ensel Sharon <user@dhp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: remote file moves, over SSH, with wildcards ... help needed.
Message-ID:  <44771B6C.7070801@mac.com>
In-Reply-To: <Pine.LNX.4.21.0605261043440.24656-100000@shell.dhp.com>
References:  <Pine.LNX.4.21.0605261043440.24656-100000@shell.dhp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ensel Sharon wrote:
> (FreeBSD 6.0-RELEASE)
>
> I cannot move a file, over ssh, with wildcards:
>
> # ssh user@host.com mv /dir/file*.wav /dir2
> ssh: No match.
>
> Ok, so I quote it:
>
> # ssh user@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 ?

Try:

    ssh user@host.com /bin/sh "mv /dir/file*.wav /dir2"

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44771B6C.7070801>