Questions tagged [find]

This tag has multiple meanings. Please DO NOT use this tag if you're just trying to find something.

find is:

  1. a filesystem search tool on various flavors of *nix,
  2. a filesystem search tool on various flavors of DOS and Windows,
  3. the name of a jQuery method,
  4. the name of a family of methods in ActiveRecord,
  5. a function in the C++ standard library,
  6. a method of strings in Python,
  7. a method of Matcher Class in Java.
  8. a method in many different NoSQL's to find documents in a collection.
11183 questions
3
votes
3 answers

Using std::find To Choose An Item From A Vector

I am having an issue getting a vector-based inventory system to work. I am able to list the items in the inventory, but not able to allow a user-selected item to be accessed. Here is the code: struct aItem { string itemName; int …
Vladimir Marenus
  • 393
  • 2
  • 3
  • 16
3
votes
1 answer

Is GNU make wildcard able to match more complex patterns, like a regexp for example?

Let's say I have the following wildcard matches in a makefile: data-files = $(wildcard $(ptdf)/*.png) \ $(wildcard $(ptdf)/*.gif) \ $(wildcard $(ptdf)/*.bmp) \ $(wildcard $(ptdf)/*.jpg) \ $(wildcard $(ptdf)/*.ico) \ $(wildcard…
PatlaDJ
  • 1,226
  • 2
  • 17
  • 31
3
votes
2 answers

jQuery find() returns only the first matched result ?

I am using the $.find() method in jQuery and i am not able to get all the results which match the selector condition. This is my HTML
Pradep
  • 1,874
  • 5
  • 21
  • 31
3
votes
1 answer

Excel - Find and replace multiple words

I just want to do a simple find and replace for multiple strings. For example, I need to replace all "A1", "A2", "A3" with "system" and all "B1", "B2" with "ACC" and so on... Does anyone know a good route to take? I'm just not sure how to get this…
user960358
  • 295
  • 3
  • 6
  • 14
3
votes
2 answers

How to find the opposite char in a python string?

Such as there is a string s: s = "((abc)((123))())blabla" We know the beginning of s is "(" and we want to find the opposite of it, the ")" before "blabla", how to do this in python? Is it possible to do this in a simple and intuitive way, without…
zchenah
  • 2,060
  • 16
  • 30
3
votes
2 answers

How to show the hidden files and hide the shown files with ls?

To list files I use ls. I know how to list almost (-A) or all (-a) of them. But when I try to show the hidden files and hide the shown files I'm out of luck with: ls --hide='*' -A The behavior that the -A option neutralizes the --hide option is…
Tim Friske
  • 2,012
  • 1
  • 18
  • 28
3
votes
2 answers

Aliasing find directory in Unix

I tried something like: alias fdi 'find . -type d -iname "*\!^*"' but this only looks for exact names passed as argument. fdi abc will only output: ./d/abc not this: ./d/greabcyup I am not just looking for exact name. It should also show…
user1793023
  • 117
  • 1
  • 2
  • 6
3
votes
4 answers

Using shell to finds directories that do not have a specified pattern of files in the folder

The directory tree is like this: . ├── A_123 │   └── 123.txt ├── A_456 │   ├── tmp │   └── tmp.log └── A_789 └── 789.txt There're 3 directories (A_123, A_456, A_789). The pattern of a directory name is: A_{numbers} and the file I'm interested…
Hanfei Sun
  • 45,281
  • 39
  • 129
  • 237
3
votes
2 answers

-execdir interpretation on Linux and OSX

find . -iname '*.rar' -execdir ls {} + this will not work under OSX Lion, yielding ls: blabla.rar: No such file or directory etc.. Additionally, above will work under Linux. However, it will invoke ls as many times as it find result. Tested with…
Pablo
  • 28,133
  • 34
  • 125
  • 215
3
votes
3 answers

DBContext Find with Includes - where lambda with Primary keys

I am writing a generic repository to interface with EF using DBContext. I have a generic Get() method which receives a primary key value and returns the entity: public class DALRepository : IDisposable, IGenericRepository
RBrowning99
  • 411
  • 2
  • 9
  • 21
3
votes
3 answers

Using `find` for multiple file types and replacing strings in found files

I'm trying to recursively find files of multiple types, and replace a certain string in each of the files found. But when I run the script, it only finds files of one single type. The command line I'm using is this find . -name '*.tcl' -o -name…
Jean-Luc Nacif Coelho
  • 1,006
  • 3
  • 14
  • 30
3
votes
5 answers

AWK equivalent in batch scripting

I want an batch scripting equivalent to this AWK script: awk '{print $3}' A file has this content: XXX YYY : 8 Rrr rrr : 7 ddd rrr : 9 I want to get a batch script to print 8, 7, 9 Is there any way by which each value can be assigned to a loop…
Sree
  • 399
  • 2
  • 5
  • 12
3
votes
4 answers

Finding files modified within an hour of another file

If i have 3 files called 1.txt,2.txt and 3.txt for example and they were created an hour apart, say 1pm 2pm and 3pm respectively. What I need is a command that finds all files modified within an hour of a specific file. I'm in the same directory as…
Nexus490
  • 319
  • 1
  • 4
  • 14
3
votes
4 answers

find with spaces in filename

I often use grep twice with find in order to search for two patterns in a file as follows: find . -name \*.xml | xargs grep -l "
Kramer
  • 927
  • 2
  • 13
  • 30
3
votes
2 answers

Search all classes in Eclipse?

Is there a search function to search for a particular string across all classes in a project in Eclipse IDE?
ricgeorge
  • 188
  • 3
  • 5
  • 12
1 2 3
99
100