Questions tagged [search]

search is used for questions relating to searching through the contents of files. For searching for filenames using the locate command use the tag locate.

Filter by
Sorted by
Tagged with
5
votes
2answers
1k views

How to make Nautilus search useful outside of /home?

Nautilus search returns no results for anything outside of my home directory. I've had this problem with both Ubuntu 10.10 Nautilus and the new Nautilus in Gnome 3.2. I asked my friend using Fedora ...
3
votes
2answers
282 views

How do I modify the search index in Ubuntu 11.04?

I'm loving (parts) of this new Unity interface; in particular the searching with the windows key (just like Windows 7!). But how do I: Tell it what programs I'd like to be able to return Tell it ...
5
votes
5answers
4k views

How to replace a list of placeholders in a text file?

I have a text (configuration) file, but the program that reads the file unfortunately doesn't allow using any kind of variables. So I'd like to use a preprocessor that replaces a set of placeholders ...
4
votes
2answers
89 views

Fail to use “locate”

I have a file named Fubini's_theorem.html under some directory. But both locate "Fubini's_theorem" or locate Fubini do not return anything. The file has been there for months, and I am sure it ...
22
votes
3answers
96k views

Searching for a string on multiple zip files

I am working on SunOS 5.10. I have a folder that contains about 200 zip files. Each zip file contains only one text file in it. I would like to search for a specific string in all the text files in ...
5
votes
2answers
277 views

Is there a web site to search in the file contents of default installations of different linux distributions?

The text string "Network services, Internet style" is found in the first line of the file /etc/services on a computer running Ubuntu 11.04 erik@laptop:~$ head -1 /etc/services # Network services, ...
12
votes
3answers
4k views

Search commands in history with discontinuous keywords

I was wondering how to search commands in history without knowing the first few letters of the command? When searching using Ctrl-R in bash, one has to give the first few letters of the command. ...
3
votes
3answers
367 views

find first line beginning with <keyword> following <other-keyword>

let's present my problem to explain better. I'm using cygwin, the installation is based on a setup.ini with the following format: @ package-name sdesc: "short description, on one line" ...
4
votes
4answers
8k views

Find file by a part of its content

I have many files in a specific repository and i must find a file which has a specific string in its content (actually referencing the file Version.cc.in). What is the best solution to find it?
1
vote
3answers
526 views

vim/emacs plugin to view recursive grep search search results?

Suppose I have a file formatted like this: file1:123 file2:4444 some/other/file:2233 This represents the search results from a command grep (i.e. the format file:line-number). I'd like to have a ...
2
votes
4answers
847 views

Fast incremental searching of files from shell

I like the command-t script in vim editor that is able to intelligently and incrementally search for files. Is there some similar program that is able to search from shell? It would be great if it ...
6
votes
2answers
2k views

Searching for string in files

Is there an easy way to search inside 1000s of files in a complex directory structure to find files which contain a specific string within the file?
1
vote
1answer
457 views

Gnome3: How to add more search options

In gnome3, when I hit Windows button a new view with windows/applications appear. I can also do some search there and can choose from two options: wiki and google. Is there any way to add some other ...
11
votes
1answer
7k views

Terminator: Shortcuts for Prev and Next?

In terminator, the keyboard shortcut Ctrl+Shift+F opens up a small bar at the bottom of the window to let the user search a text string within the terminal scrollback. Are there any keyboard ...
2
votes
6answers
567 views

Searching strings on files

I've got a bunch on strings which I need to find in a couple of files, for example: string1 string2 stringn file1.txt file2.txt filen.txt Is there an (easy) way to do that in bash? I need to know, ...
6
votes
4answers
10k views

Is it possible in unix to search inside zip files

I have 100s of directories and within those I have a few zip files. Now there are images named abc.jpg in those zip files. The zip files may be in any folder or in any subfolder so its difficult to ...
1
vote
0answers
96 views

How to search for file contents [duplicate]

Possible Duplicate: Finding a substring in files across subdirectories with a single built-in command? I know that I can use grep for a single file, but what about a whole directory tree?
6
votes
5answers
5k views

Simple, user-friendly GUI file finder?

simple, user-friendly = as Google search web page, one editbox, one button, nothing to explain, everybody grasps an idea in 1ms fast = finding files and directories by filenames, not by content (!) ...
55
votes
2answers
8k views

Unhighlight last search in 'less'

When you use a / forward search or a ? backward search in less, all instances of the file get highlighted. After I've found the instance of the word I'm looking for, what is the most correct way to ...
7
votes
7answers
24k views

How do I find text within a file and have it search multiple subfolders?

I'm looking for a function name and the folder structure is deep and there are a lot of files to look though. Usually I go with something like find * | grep functionname but is that the best way?
12
votes
3answers
1k views

Full text search for man pages

apropos works great for searching manual page names and descriptions. Is there a similar command for searching the entire contents of the manual pages?
4
votes
2answers
1k views

Spotlight/Search on Fedora

I apologize for the MacOSX reference, but is there an equivalent of Spotlight-Search in Fedora, specifically FC14 x86_64 ?
5
votes
1answer
1k views

Is there a search utility which can binary split search a large sorted (sequential) text file?

Yes, I know it sounds odd. Sequential and Binary-splits don't mix.. That is unless the sequence is the byte offset within the file itself... I've scrambled together a binary split search in bash ...
8
votes
3answers
7k views

How does one find and replace text in all open files with kate?

How does one find and replace text in all open files with kate?
12
votes
4answers
4k views

vim search around line breaks

When I am editing a LaTeX document in vim, often times I want to search for a phrase. Because I have LaTeX setup to wrap lines, sometimes half of the phrase will be on one line while the other half ...
128
votes
14answers
92k views

How can I grep in PDF files?

Is there a way to search pdf files using the power of grep, without converting to text first in Ubuntu?
5
votes
1answer
207 views

Which desktop indexer indexes xml file content?

My favorite indexer doesn't have this capability, and I'm looking for an alternative that does.
20
votes
4answers
12k views

Is there some sort of PDF to text -converter?

I need PDF files to text so I can search over them in bulk from commandline. Is there some converter for Ubuntu, OBSD or similar distro? Perhaps related post, OCR with ubuntu here.
2
votes
1answer
86 views

Amarok2 “Search Collection” shortcut?

Is there a way to make a shortcut for amarok2 that would put focus on the search collection box?
37
votes
7answers
9k views

Command-line-friendly full-text indexing?

Is there such a thing as a full-text indexing engine, that can be queried from the command line and ideally wouldn't require using a gui at all ? I'm especially interested in indexing my ebooks and ...
8
votes
2answers
898 views

How does searching a file (locate) or autocompletion work?

I am a Windows user and coming from Windows with all the indexing and eternal wait times when searching for files, I find it surprising how fast does locate work or the autocompletion (that I know) ...
9
votes
10answers
820 views

Where can I find Software for Unix/Linux that does X?

I'm looking for a program that does X and runs on unix (or at least on my particular unix system). Where can I look? Is there a more efficient way than a generic web search?