Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

avoiding find error message

4 views
Skip to first unread message

happytoday

unread,
Jan 29, 2012, 5:32:19 AM1/29/12
to
I am searching files that contain my hostname but I am always facing
that error message :


/>find / -name .* -exec grep Sol10U10 {} \;
find: bad option ..
find: [-H | -L] path-list predicate-list

Janis Papanagnou

unread,
Jan 29, 2012, 7:40:57 AM1/29/12
to
Quote your file globbing parameters

find / -name ".*" -exec ...

Depending on what you intend to do it may be wise to also extend the
pattern to include/ignore . and .. and/or to defined the file type
with option -type .

Janis
0 new messages