Date: Wed, 30 Aug 2006 18:06:09 +0200 From: Matteo Pillon <matteo.pillon@gmail.com> To: Ensel Sharon <user@dhp.com> Cc: freebsd-questions@freebsd.org Subject: Re: deleting with wildcards over ssh ... how ? Message-ID: <20060830160609.GA16094@neptune.octopus> In-Reply-To: <Pine.LNX.4.21.0608301059480.31959-100000@shell.dhp.com> References: <Pine.LNX.4.21.0608301059480.31959-100000@shell.dhp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060830160609.GA16094>