Date: Mon, 1 Oct 2001 13:57:12 +0200 From: Peter Wullinger <Peter.Wullinger@stud.fh-regensburg.de> 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> In-Reply-To: <20011001135119.B17764@pc04.ipc-kallmuenz.de>; from wullinger@ipc-fabautomation.com on Mon, Oct 01, 2001 at 01:51:19PM %2B0200 References: <20011001135119.B17764@pc04.ipc-kallmuenz.de>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Mon, Oct 01, 2001 at 01:51:19PM +0200, Peter Wullinger wrote:
>
> 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 processing
it... And it renames only dirs ;-)
Try your old script and setup IFS to newline
Sorry, I don't know any more how to do this, it is either
IFS="\
"
or
IFS="\n";
Peter
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (SunOS)
Comment: For info see http://www.gnupg.org
iD8DBQE7uFoX2o6XoYZo6n4RAvTVAJ0SSeSdrnkIqrPn02Po3MR3cWG5/gCfVqp6
rLuejmMoGIzkNK84i7bS7es=
=QkGj
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011001135712.A3593>
