Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2006 17:01:22 +0200
From:      Karol Kwiatkowski <freebsd@orchid.homeunix.org>
To:        Ensel Sharon <user@dhp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: remote file moves, over SSH, with wildcards ... help needed.
Message-ID:  <44771842.9070608@orchid.homeunix.org>
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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig6589A57F63254AC0E5FD051C
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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

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

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

HTH,

Karol

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


--------------enig6589A57F63254AC0E5FD051C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEdxhNezeoPAwGIYsRArFiAJ9O7m+VpJaRWMv9mU9M0kIQ2q78CQCfVdX9
XZ5kIK0y84Pz7MdnTkY9Bh8=
=eqxw
-----END PGP SIGNATURE-----

--------------enig6589A57F63254AC0E5FD051C--



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