From owner-freebsd-questions@FreeBSD.ORG Fri May 26 15:01:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C41D16A422 for ; Fri, 26 May 2006 15:01:48 +0000 (UTC) (envelope-from freebsd@orchid.homeunix.org) Received: from orchid.homeunix.org (avj175.neoplus.adsl.tpnet.pl [83.27.43.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD79643D46 for ; Fri, 26 May 2006 15:01:47 +0000 (GMT) (envelope-from freebsd@orchid.homeunix.org) Received: from [192.168.1.66] (blackacidevil.orchid.homeunix.org [192.168.1.66]) (authenticated bits=0) by orchid.homeunix.org (8.13.6/8.13.6) with ESMTP id k4QF1X9c083275 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 26 May 2006 17:01:39 +0200 (CEST) (envelope-from freebsd@orchid.homeunix.org) Message-ID: <44771842.9070608@orchid.homeunix.org> Date: Fri, 26 May 2006 17:01:22 +0200 From: Karol Kwiatkowski User-Agent: Thunderbird 1.5.0.2 (X11/20060424) MIME-Version: 1.0 To: Ensel Sharon References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 OpenPGP: id=06E09309; url=http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6589A57F63254AC0E5FD051C" X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on orchid.homeunix.org X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: remote file moves, over SSH, with wildcards ... help needed. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@orchid.homeunix.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2006 15:01:48 -0000 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 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--