0
votes
2answers
47 views

Terminal - Search entire directory for keyword

I am working on a Ruby on Rails project so I have to manage multiple files. I think I made a syntax mistake somewhere but I'm not sure well. It would be awesome if I could search for a keyword through ...
-1
votes
4answers
272 views

how to find a word in text files from a directory [duplicate]

Suppose that I have a directory with name _file and includes two sub directory like _1 and _2 and on each one I have some text files. I want to search a word like foo in one of these text files. How I ...
0
votes
1answer
48 views

Search and Replace Similar but Different Phrases

How do I search and replace a common, but different, phrase to a single phrase in multiple files from the terminal. For instance, I want to change the following: File1, File2, File3: --Link2-- ...
0
votes
1answer
457 views

CTRL+F Find/Search not active after clean install of Ubuntu 13.04

2 days after a completely clean install of 13.04 and no relevant changes to the system (keybd shortcuts etc.), CTRL+F does not work anywhere, with the exception of Chrome, where it opens the ...
0
votes
2answers
326 views

Recursive list of files with names that don't contain a certain string

I have: a directory with many nested subdirectories and files. I would like: a list of all files whose name doesn't contain a certain string. Example file structure: foo/ foo/bar/foobar.txt ...
3
votes
1answer
2k views

What is the difference between “find” and “locate” search methods in Catfish?

There seem to be two different methods of searching for files in Catfish What is the difference?
5
votes
3answers
2k views

How do I get mlocate to only index certain directories?

I'd like to use mlocate on my Ubuntu server, but only to index certain directories (e.g. /home and /data, but not everything under /). However, mlocate's standard configuration works the opposite way; ...
1
vote
1answer
74 views

Which package manages the Ctrl+F function?

I'm trying to find out which package manages the Ctrl+F (Find) function. I need this so I can properly file a bug; the Ctrl+F function is constantly being launched on whatever application I have on ...
4
votes
1answer
9k views

How to find a folder on my server with a certain name?

I have a directory somewhere on my server wth the name "exampledocs". I tried to find it's location using: ls -d */ | grep -E 'exampledocs' and find * -regextype posix-extended \-regex ...
5
votes
6answers
522 views

How can I find files quicker than find or locate?

I have been using find command to find files on my 1 tb hard disk. it takes very long. then I used locate which proved to be faster with regular update using updatedb. But the limitation of locate is ...
3
votes
2answers
3k views

How can I search for files in Unity?

I'm trying to use the dash instead of gnome-do, but I can't find files. "Find files" only returns "Top Results". In gnome-do, I was able to set some often-used directories to index. For example, I ...
2
votes
1answer
929 views

How to exclude a subtree from the find command

So I'm trying to find all the mercurial repositories in my home directory $ find ~ -name ".hg" -or -name ".git" This works fine, but it finds a lot in the ~/.local/share/Trash subdirectory How do ...