Questions tagged [file-search]

This tag can refer to the process of searching a system for a specific file or the process of searching the contents of a file for specific keywords.

This tag can refer to

  1. The process of searching a system for a specific file.

  2. The process of searching the contents of a file for specific keywords.

189 questions
695
votes
14 answers

How can I use grep to find a word inside a folder?

In Windows, I would have done a search for finding a word inside a folder. Similarly, I want to know if a specific word occurs inside a directory containing many sub-directories and files. My searches for grep syntax shows I must specify the…
kiki
  • 13,627
  • 17
  • 49
  • 62
69
votes
8 answers

How to make eclipse "File Search" to also search inside source jars containing some text?

I am working on a (Java) project in which I have many jars which have a source-jar file attached. Is there any way to make the eclipse "File Search" search for Java files (and txt, xml etc. for that matter) containing some string literal inside…
akjain
  • 1,787
  • 3
  • 20
  • 35
53
votes
12 answers

Fuzzy file search in Linux console

Does anybody know a way to perform a quick fuzzy search on the Linux console? Quite often I come across situations where I need to find a file in a project but I don't remember the exact filename. In the Sublime text editor I would press Ctrl+ P and…
nab
  • 4,751
  • 4
  • 31
  • 42
33
votes
9 answers

Recursive File Search (PHP)

I'm trying to return the files in a specified directory using a recursive search. I successfully achieved this, however I want to add a few lines of code that will allow me to specify certain extensions that I want to be returned. For example return…
Jason
  • 363
  • 1
  • 3
  • 5
19
votes
3 answers

Recursive File Search in .net

I need to search a drive (C:, D: etc) for a partuicular file type (extension like .xml, .csv, .xls). How do I preform a recursive search to loop all directories and inner directories and return the full path of where the file(s) are? or where can I…
Saif Khan
  • 18,402
  • 29
  • 102
  • 147
18
votes
4 answers

Fast text search in over 600,000 files

I have a php, linux server. It has a folder called notes_docs which contains over 600,000 txt files. The folder structure of notes_docs is as follows - - notes_docs - files_txt - 20170831 - 1_837837472_abc_file.txt -…
zookastos
  • 917
  • 10
  • 37
13
votes
2 answers

Recursively search all directories for an array of strings in php

I am new to PHP coding and here am looking for fastest way to do recursive search on all directories for an array of strings. I am doing this way $contents_list = array("xyz","abc","hello"); // this list can grow any size $path = "/tmp/"; //user…
inari6
  • 401
  • 1
  • 9
  • 19
13
votes
3 answers

Eclipse Maven showing multiple paths for the same file

Is there any setting in Eclipse to show only the Maven project where the file resides? I have different Maven projects which are modules of a parent Maven project: projParent |-projWeb |-projModel |-projServices |-... If I look for a…
user593029
  • 511
  • 7
  • 18
12
votes
5 answers

Open Type (Ctrl+Shift+T) in Eclipse from every window

If I type Ctrl+Shift+T in Eclipse, an Open Type window opens. But this works only if I am in a Java file (or in the Package Explorer area). I want to open the same window when I press Ctrl+Shift+T regardless of the resource (E.g.: if the open file…
ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
11
votes
1 answer

vifm search files in subfolders

How can I search files just like with / command but recursively scanning subfolders? Or maybe there are other approaches to get a list of files that match some pattern in the current folder including all subfolders.
bruce
  • 145
  • 1
  • 5
10
votes
2 answers

What makes Everything's file search and index so efficient?

Everything is a file searching program. As its author hasn't released the source code, I am wondering how it works. How could it index files so efficiently? What data structures does it use for file searching? How can its file searching be so…
Sraw
  • 18,892
  • 11
  • 54
  • 87
9
votes
2 answers

Smart image search via Powershell

I am interested in file searching by custom properties. For example, I want to find all JPEG-images with certain dimensions. Something looks like Get-ChildItem -Path C:\ -Filter *.jpg -Recursive | where-object { $_.Dimension -eq '1024x768' } I…
Oleg Svechkarenko
  • 2,508
  • 25
  • 30
8
votes
4 answers

How to count test cases written with pytest?

My objective is to get the number of test methods in a package/folder. I'm able to do that by executing py.test --collect-only|grep collected This shows the test count as collected 104 items However this counts the parameterized test…
pr4bh4sh
  • 654
  • 3
  • 12
  • 19
6
votes
2 answers

Vim: Search in Open Buffers

One features I like with Visual Studio is the ability to search in open files only. For example, if I recently did changes to some files and I would like to trace those changes, I might search for a certain word, but only in those files to avoid…
Rafid
  • 18,991
  • 23
  • 72
  • 108
6
votes
3 answers

how to search for a file with php

First thing is first. I am not a php developer this is something that is needed for my job so I took it on and I am learning as i go Right now we have an excel sheet that holds links for a manuals for the items we make and these have to be updated…
bigjim
  • 63
  • 1
  • 1
  • 5
1
2 3
12 13