Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 1998 12:07:52 +0200
From:      Johann Visagie <wjv@cityip.co.za>
To:        Dan Busarow <dan@dpcsys.com>, Malartre <malartre@aei.ca>
Cc:        questions@FreeBSD.ORG
Subject:   Re: /root:"chmod 600 .*" nothing work now
Message-ID:  <19980616120752.H26576@cityip.co.za>
In-Reply-To: <Pine.BSF.3.96.980615192559.15772A-100000@java.dpcsys.com>; from Dan Busarow on Mon, Jun 15, 1998 at 07:35:30PM -0700
References:  <3585D0EB.389AA3D7@aei.ca> <Pine.BSF.3.96.980615192559.15772A-100000@java.dpcsys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 Jun 1998 at 19:35 SAT, Dan Busarow wrote:
> 
> BTW, the command you wanted was chmod 600 .??*

But that would miss out any file whose name is a period followed by a single
character, e.g. ".a".

What about:

$ chmod 600 .??* .[!.]

AFAIK the use of '!' to negate is shell-dependent.  (I seem to recall reading
an article about "getting all the dotfiles" in Unix Power Tools.)

-- V

Johann Visagie | Email: wjv@CityIP.co.za | Tel: +27 21 419-7878

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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