* Re: question on "find"
[not found] <Pine.SOL.4.56.0404181942470.9002@pollux.cse.buffalo.edu>
@ 2004-04-19 1:17 ` Stephen Samuel
0 siblings, 0 replies; only message in thread
From: Stephen Samuel @ 2004-04-19 1:17 UTC (permalink / raw)
To: Tony Gogoi, linux-newbie
The easiest would be to just 'find . '
That tells it to search in the current dirctory (and also
find hidden files in the current directory, which "find *" won't)
I don't see why "Doc - PDF" would cause you
problems, but I can see "-pdf doc" causing a problem,
because the leading '-' makes the filename look like a
find search option (and all other filenames after that
are evaluated in that context).
That can be worked around by using './*' instead of '*'
(replace '*' with any globbing pattern)
This would keep the first character of a filename from
ever being a "-"
Tony Gogoi wrote:
> I have another question.
>
> "find ./*" displays recursively all files in this and its sub-directories.
>
> However for some files that were ftp'ed from a Windows system eg.
> something like in the one of the directories
> "(Doc - PDF) My Document.pdf"
> would cause "find *" to display "invalid predicate...." .
> How can I overcome this problem ?
>
> Thanks.
>
> Thanks Mike and Raju for ur earlier responses.
>
>
>
> Tony Gogoi
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Stephen Samuel +1(604)876-0426 samuel@bcgreen.com
http://www.bcgreen.com/~samuel/
Powerful committed communication. Transformation touching
the jewel within each person and bringing it to light.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-19 1:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.SOL.4.56.0404181942470.9002@pollux.cse.buffalo.edu>
2004-04-19 1:17 ` question on "find" Stephen Samuel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox