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
1 answer

Awk/Find/Grep - if $3 exists in file

Editing for simplicity. Adding existing variables: time=`date +'%d%m%y_%H%M'` temp_file=temp\_$input_file.txt final=$time\_Parsed_CSV.config Original CSV ($temp_file) - actual names are not 'host/group' anything - need to filter based on…
Numpty
  • 1,461
  • 5
  • 19
  • 28
3
votes
4 answers

Binary Search Tree implemented in Java - Find Element recursively

Using Java, is it possible to write a recursive method to find an element in a binary search tree? I say no because of the nature of recursive re-tracing back unless I implemented incorrectly? I have been searching the internet and all i can find is…
Allen
  • 181
  • 1
  • 4
  • 16
3
votes
3 answers

Notepad++ Replace new line inside text

I have this sample, because is one of one million rows with that. I have this text: Jan Kochanowski University of Humanities and Sciences (Swietokrzyska Pedagogical University) / Uniwersytet…
daminufe
  • 924
  • 1
  • 7
  • 13
3
votes
1 answer

MongoTemplate Limit query issue

I am using MongoTemplate to execute my Mongo queries. I wanted to know if count works with limit set? Also why find query searches full collection (according to query) although limit is set? For e.g. the query i wrote might result in having 10000…
Jay
  • 31
  • 1
  • 1
  • 4
3
votes
3 answers

how can I find all the file which created after some time, in a given directory?

I google the find doc,and wrote this find . -type f -depth 1 -Btime 1 howerver ,I doesn`t work? how can I get this done?
newlife
  • 778
  • 1
  • 6
  • 20
3
votes
2 answers

Maintain Directory Structure with Find and SCP

I am using the find command to locate files that need to be scp'd to a target host. My problem is that the directory structure is not maintained on the target. cd /path/to/dir; find . -exec scp -pr {} hostname:/tmp/. \; (I have tried this with and…
Aaron Copley
  • 242
  • 3
  • 11
3
votes
1 answer

Why is find in matlab returning double values

The find function within matlab returns indices where the given locigal argument evaluates true. Thus I'm wondering, why the return values (for the indices) are of type double and not uint32 or uint64 like the biggest index into a matrix could…
Bastian Ebeling
  • 1,138
  • 11
  • 38
3
votes
2 answers

ASP.MVC db Find(), but with non-primary key parameter

How does one get a list of results by using a key that is not the primary key? To be more specific, I have a composite primary key where I would like to retrieve all the matches with one column's parameter. I would think, in an ActionResult in the…
user
  • 61
  • 1
  • 1
  • 8
3
votes
1 answer

how can I retain text-selected status when screen rotation in android

How can I retain text-selected find status when screen rotation in android In my Application, I use Webview to show the website, then I long press the website content, to create the system default Actionmode,the "select" ,"copy" ,"share" ,"find"…
user2614801
  • 105
  • 1
  • 5
3
votes
1 answer

Find and replace in Notepad++

I have a big price list where i have to replace all prices by 0. The price list is build by this style . And i want to replace the numbers by 0 . My attempt: EDIT : solved by…
3
votes
3 answers

Perl beginner: How can I find/replace ascii characters in a file?

I'm completely new to Perl and I thought that would be the best language to solve my simple task. I need to convert a binary file into something readable and need to find and replace strings like \x00\x39 into \x09 (tab) or something like that. From…
Gary Czychi
  • 204
  • 1
  • 3
  • 10
3
votes
1 answer

Use logical indexing instead of FIND

Within a loop in my code I use a one-liner to find and plot the minimum of some potential (for clarity: the 7 corresponds to the cells containing the potential values, the 5 to the x-values): plot(PDdata{subject,5}{1,1}(find(PDdata{subject,7}==... …
Fraukje
  • 673
  • 3
  • 20
3
votes
2 answers

Find with image extension in href (jQuery)

I need to find (and hide) all links with images (.jpg, .png, .gif) in href as they're causing my wordpress excerpts to break. Many thanks.
eozzy
  • 66,048
  • 104
  • 272
  • 428
3
votes
3 answers

Quickest way to check if a number is in a set?

What is the fastest method to check if a number is in a list in Javascript? I know about indexOf >= but it seems rather slow to me. I have to perform millions of checks per second and the list is rather short (max ~10 entries)
pixartist
  • 1,137
  • 2
  • 18
  • 40
3
votes
1 answer

excluding a directory from find and sed rename

I'm using this command to go through all files, directories and subdirectories to change any mentions of oldurl.com to newurl.org: find . -type f -name '*.php' -exec sed -i 's|oldurl.com|newurl.org|g' {} + It works fine, however, I need to exclude…
nooblag
  • 339
  • 1
  • 5
  • 13