Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i wanna find all cicle for into ubuntu

i write: grep for(* /usr/include

don't work...why?

share|improve this question

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. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

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
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

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.

share|improve this answer

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