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

Chuck Swiger cswiger at mac.com
Fri May 26 08:15:00 PDT 2006


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 ?

Try:

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

-- 
-Chuck



More information about the freebsd-questions mailing list