Question on find inconsistency - SOLVED
Glenn R Williams
gloonie at earthlink.net
Tue Nov 18 14:57:31 UTC 2008
Thanks Donn,
I found something to answer (partially) my own question: When there is only 1
file with that pattern in the directory, not quoting the argument works.
However, when 2 or more files are present with the same pattern, the same error
message appears.
Bottom line: the shell (bash in my case) is globbing the argument before it is
present to find. In effect, if your have two files, say file1.txt and file2.txt,
and your write:
find . -name *.txt
then the shell present this to find:
find . -name file1.txt file2.txt
This is why the quotes are needed.
--
Glenn R Williams
----------------
Yaşamak bir ağaç gibi tek ve hür
ve bir orman gibi kardeşçesine,
bu hasret bizim
-- Nazım Hikmet
On Tuesday 18 November 2008 09:52:45 Donn wrote:
> > find / -name *.mp4
>
> find is very confusing. I think you should use quotes tho:
> find / -name "*.mp4" might help.
>
> \d
More information about the kubuntu-users
mailing list