i wanna find all cicle for into ubuntu

i write: grep for(* /usr/include

don't work...why?

link|improve this question
1  
Could you add more information? I really don't understand your question. What is "cicle for into ubuntu"? – Johan Apr 13 '10 at 20:07
1  
Folks, I agree that the question is hard to understand, but I'm not sure that dumping -1's on someone who may not be a native English speaker is the answer. – coneslayer Apr 13 '10 at 21:12
feedback

closed as not a real question by studiohack Dec 20 '11 at 17:56

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

for(* is not a valid regular expression. If you are trying to match the literal text for(, try fgrep instead of grep. If you're trying to do something else, please clarify what you are trying to search for.

Note that * in regular expressions does not work like * in wildcards (in regex, it means "zero or more of the previous character", not "any sequence of characters").

Also: /usr/include is a directory name, not a filename or wildcard pattern matching filenames. You may want /usr/include/*.h or an idiom involving find ... -print | xargs grep ..., but again it would help to have a clearer idea of what you're trying to do.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.