From owner-freebsd-questions@FreeBSD.ORG Mon May 9 22:18:29 2005 Return-Path: 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 B8BDB16A4EA for ; Mon, 9 May 2005 22:18:29 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id C95BC43D68 for ; Mon, 9 May 2005 22:18:23 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a002.otenet.gr [212.205.215.2]) j49MGidx007195; Tue, 10 May 2005 01:16:48 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j49MI9AZ001285; Tue, 10 May 2005 01:18:09 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j49MI9cM001284; Tue, 10 May 2005 01:18:09 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 10 May 2005 01:18:09 +0300 From: Giorgos Keramidas To: Fafa Hafiz Krantz Message-ID: <20050509221809.GB782@gothmog.gr> References: <20050509191321.924034BEAE@ws1-1.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050509191321.924034BEAE@ws1-1.us4.outblaze.com> cc: freebsd-questions@freebsd.org Subject: Re: On removing ^M X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 22:18:29 -0000 On 2005-05-09 14:13, Fafa Hafiz Krantz wrote: > So in conclusion, does this sh script look good? > I mean, can the first 3 commands be put like that? > > $ chown -R fafa:wheel * > > $ find . -type d -exec chmod 755 {} \; > $ find . -type f -exec chmod 644 {} \; Yes. That looks fine. You may want to quote those {} characters. Some shells may interpret them. Compare, for instance, the output of the following two commands in tcsh: % echo {a,b,c} % echo '{a,b,c}'