www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <3058f9b40707101411r3e2b5b07t5419ec901d83e805@mail.gmail.com> |
Date: | Tue, 10 Jul 2007 23:11:04 +0200 |
From: | "Ariel Burbaickij" <ariel DOT burbaickij AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | find(1) behaving strange or do I miss something |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hello all, following situation: I hate white spaces in file and cranked tiny bashscript for replacing them that goes like this: for i in `find . -type f` do mv $i /some_directory/`echo $i|sed 's/ /_/g'` done On this I get complaints from mv that it cannot find files that are basically parts of the name with spaces like this: idiotic file with whitespaces cannot stat 'idiotic' -- no such file or directory cannot stat 'file' -- no such file or directory Truth to be told I hoped that find would still manage to treat them as single entity. Are my expectations to high or is it bug indeed? /wbr Ariel Burbaickij -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |