Question on find inconsistency - SOLVED
Jonas Norlander
jonorland at gmail.com
Tue Nov 18 15:12:09 UTC 2008
2008/11/18 Glenn R Williams <gloonie at earthlink.net>:
> 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
Thanks!
Thats good to know
/ Jonas
More information about the kubuntu-users
mailing list