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 [EMAIL PROTECTED] 'sh -c "rm -rf "/some/testdir/*"'

As * has to be expanded before is sent to rm.


 * Pillon Matteo
freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to