Top "Search" questions

Questions about search algorithm mechanics and implementation.

grep a file, but show several surrounding lines?

I would like to grep for a string, but also show the preceding five lines and the following five lines …

search logging grep command-line-interface
How can I exclude one word with grep?

I need something like: grep ^"unwanted_word"XXXXXXXX

regex string search grep
grep, but only certain file extensions

I am working on writing some scripts to grep certain directories, but these directories contain all sorts of file types. …

linux unix search command-line grep
Use grep --exclude/--include syntax to not grep through certain files

I'm looking for the string foo= in text files in a directory tree. It's on a common Linux machine, I …

unix search shell command-line grep
Is there a short contains function for lists?

I see people are using any to gather another list to see if an item exists in a list, but …

python list search collections contains
Python list of dictionaries search

Assume I have this: [ {"name": "Tom", "age": 10}, {"name": "Mark", "age": 5}, {"name": "Pam", "age": 7} ] and by searching "Pam" as name, I …

python search dictionary
Using C# to check if string contains a string in string array

I want to use C# to check if a string value contains a word in a string array. For example, …

c# arrays string search
How to find the index of an element in an int array?

How can I find an index of a certain value in a Java array of type int? I tried using …

java arrays search indexing
How to do case insensitive search in Vim

I'd like to search for an upper case word, for example COPYRIGHT in a file. I tried performing a search …

search vim case-insensitive
Search All Fields In All Tables For A Specific Value (Oracle)

Is it possible to search every field of every table for a particular value in Oracle? There are hundreds of …

sql oracle search plsql database-table