Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Midnight Commander > File Find. What text do I have to put in the »Content:« text field and in the other fields? I tried several settings in the other fields but mc always returned no result. (This is not explained in 'man mc'.) My hope is to perform some grep-like action using mc. did not enlighten me.

share|improve this question

I managed now to obtain meaningful results. I probably always had set the mask in the »File Name:« text field too narrow. I set it now to '*', and now it works. I asserted also »Use Shell Pattern«, »Search for Contents« and »Case«.

share|improve this answer
If this post is the answer to your question, you should accept it by clicking the check mark next to the answer. That way, it'll appear in search results as answered and hopefully help someone else. – Scott Severance Jun 23 '12 at 12:54

You must compelte all the fields that are required for a complete search. You must tell mc everything, like:

  • where to search (start at)
  • file name (what file you are looking for; here you can use wildcards like *)
  • what is inside that file you are intersted in (content)

The output of the search will be like: no:filename where:

  • no is the number of the line in the file where your content was found.
  • filename is the name of the file find by search according to your parameters from "Start at" and "File name."
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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