From owner-freebsd-hackers Mon Oct 1 4:57:21 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rfhs8012.fh-regensburg.de (rfhs8012.fh-regensburg.de [194.95.108.29]) by hub.freebsd.org (Postfix) with ESMTP id 1241837B401 for ; Mon, 1 Oct 2001 04:57:17 -0700 (PDT) Received: from rfhpc8320.fh-regensburg.de (wup34966@rfhpc8320.fh-regensburg.de [194.95.108.32]) by rfhs8012.fh-regensburg.de (8.11.6/8.11.6) with ESMTP id f91BvCN16689 for ; Mon, 1 Oct 2001 13:57:12 +0200 (MEST) Received: (from wup34966@localhost) by rfhpc8320.fh-regensburg.de (8.9.1/8.8.3) id NAA03682 for hackers@freebsd.org; Mon, 1 Oct 2001 13:57:12 +0200 (MET DST) Date: Mon, 1 Oct 2001 13:57:12 +0200 From: Peter Wullinger To: hackers@freebsd.org Subject: Re: how to make 'for' understand two words as a single argument Message-ID: <20011001135712.A3593@rfhpc8320.fh-regensburg.de> References: <20011001135119.B17764@pc04.ipc-kallmuenz.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-rmd160; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011001135119.B17764@pc04.ipc-kallmuenz.de>; from wullinger@ipc-fabautomation.com on Mon, Oct 01, 2001 at 01:51:19PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 01, 2001 at 01:51:19PM +0200, Peter Wullinger wrote: >=20 > find . -type d -maxdepth 1 -print -exec mv {} `echo {} | tr [A-Z] [a-z]` > \; This does not work either, since it rename directories while still processi= ng it... And it renames only dirs ;-) Try your old script and setup IFS to newline=20 Sorry, I don't know any more how to do this, it is either IFS=3D"\ " or IFS=3D"\n"; Peter =20 --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.0 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQE7uFoX2o6XoYZo6n4RAvTVAJ0SSeSdrnkIqrPn02Po3MR3cWG5/gCfVqp6 rLuejmMoGIzkNK84i7bS7es= =QkGj -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message