From owner-freebsd-questions@FreeBSD.ORG Wed Aug 30 16:05:05 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 3442516A4E8 for ; Wed, 30 Aug 2006 16:05:05 +0000 (UTC) (envelope-from matteo.pillon@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D71B43D68 for ; Wed, 30 Aug 2006 16:05:00 +0000 (GMT) (envelope-from matteo.pillon@gmail.com) Received: by nf-out-0910.google.com with SMTP id n15so181807nfc for ; Wed, 30 Aug 2006 09:04:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=norqSzR/xdoSvF4vv5AFfKMfdOoh58g+MQo29z9sF/lPR1RH3+j+VOyA1zLYnt9AvyTZeNa2HmFU3v5huQYe/h7+lf49ToYTY5RIGBTRzVgo5Ra73CGg/GT4ebq9CtH8DkoYYDh/BirbSd7YTkuLjSYnLW7LiytV6Od/MsyTdDY= Received: by 10.49.8.1 with SMTP id l1mr3013731nfi; Wed, 30 Aug 2006 09:04:50 -0700 (PDT) Received: from neptune.octopus ( [80.104.86.69]) by mx.gmail.com with ESMTP id x24sm628149nfb.2006.08.30.09.04.33; Wed, 30 Aug 2006 09:04:50 -0700 (PDT) Received: by neptune.octopus (Postfix, from userid 1000) id ADF18C162; Wed, 30 Aug 2006 18:06:09 +0200 (CEST) Date: Wed, 30 Aug 2006 18:06:09 +0200 From: Matteo Pillon To: Ensel Sharon Message-ID: <20060830160609.GA16094@neptune.octopus> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: deleting with wildcards over ssh ... how ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 16:05:05 -0000 On Wed, Aug 30, 2006 at 11:06:39AM -0400, Ensel Sharon wrote: > I want to delete some remote files with a wildcard, running 'rm' over ssh. > [...] > So what is the _right_ way to do this ? ssh user@host 'sh -c "rm -rf "/some/testdir/*"' As * has to be expanded before is sent to rm. Bye. -- * Pillon Matteo