Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Midnight Commander 3.4.8.1 > 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. http://svn.dd-wrt.com:8000/browser//src/router/mc2/src/filemanager/find.c did not enlighten me.

share|improve this question

2 Answers 2

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

 
discard

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.