From: Stephen Samuel <samuel@bcgreen.com>
To: Tony Gogoi <tgogoi@cse.Buffalo.EDU>,
linux-newbie <linux-newbie@vger.kernel.org>
Subject: Re: question on "find"
Date: Sun, 18 Apr 2004 18:17:13 -0700 [thread overview]
Message-ID: <40832899.1000405@bcgreen.com> (raw)
In-Reply-To: <Pine.SOL.4.56.0404181942470.9002@pollux.cse.buffalo.edu>
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
parent reply other threads:[~2004-04-19 1:17 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <Pine.SOL.4.56.0404181942470.9002@pollux.cse.buffalo.edu>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40832899.1000405@bcgreen.com \
--to=samuel@bcgreen.com \
--cc=linux-newbie@vger.kernel.org \
--cc=tgogoi@cse.Buffalo.EDU \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox