This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

find(1) behaving strange or do I miss something


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]