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

find out unrepetitive, unique data pair in matlab

I have a set of data looks like this: data = 4 35 4 36 4 37 4 39 4 50 6 24 6 35 6 36 6 39 6 50 6 78 10 24 10 35 10 36 10 39 ... The actual matrix is in the order of 70000 X 2. What I want is to form a matrix containing all the unique…
quinette
  • 31
  • 1
  • 3
3
votes
2 answers

Excel VBA find and replace

I have this code and it works fine. Now I need change it and I don't know how do it. The code searsh in entire wordksheet. I need search in only 1 column the code search entire cell. I need search left or mid or right side of cell. Sub ChgInfo()…
Roberto Bahia
  • 105
  • 1
  • 2
  • 11
3
votes
2 answers

How to find exact match using PSLIST and FIND in Batch/CMD

I am trying to find a running process and kill it using PSLIST and PSKILL however, I'm unable to get the errorlevel to set properly. Depending on the way I do it, it gets stuck on either 0 or 1. I originally had the code working the Taskkill and…
ucfmat
  • 33
  • 1
  • 4
3
votes
3 answers

Find and cut out a python substring

Here is what I'm trying to do: I have a long string: s = asdf23rlkasdfidsiwanttocutthisoutsadlkljasdfhvaildufhblkajsdhf I want to cut out the substring: iwanttocutthisout I will be iterating through a loop and with each iteration the value of s…
Riley Tench
  • 33
  • 1
  • 1
  • 3
3
votes
4 answers

Excel: search for string in row and find column

I would like to search a row for a string and get the column number if there is such a string. Is this possible by using worksheet functions in Excel?
karamell
  • 713
  • 7
  • 16
  • 28
3
votes
2 answers

How to change out-of-focus text selection color in Xcode?

Okay, I'll bite. I've got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, however, the results list stays in focus and the found…
Jackson
  • 181
  • 5
3
votes
3 answers

Unix find directory with missing file

How can I use find to identify those directories that do not contain a file with a specified name? I want to create a file that contains a list of all directories missing a certain file.
user1486488
  • 31
  • 1
  • 2
3
votes
3 answers

Find files in a dir, executing a command with execdir and redirecting

It seems like I am unable to find a direct answer to this question. I appreciate your help. I'm trying to find all files with a specific name in a directory, read the last 1000 lines of the file and copy it in to a new file in the same directory. As…
Amir
  • 421
  • 1
  • 4
  • 14
3
votes
0 answers

CMakeList dont find CURL libraries

I am trying to use CURL with a CMakeList file. But the command "find_package(CURL)" isnt working (it find the FindCURL.cmake file, but not the libraries). I asked to a curl developer what curl libraries was needed, to be sure. It is the ones I…
3
votes
2 answers

CakePHP SQL conversion - basic ORDER BY

I have a table where I'd like to get all id's that equal 26 first, then have the rest sorted in descending order, so something like: row id --- -- 1 26 2 26 3 26 4 27 5 25 6 24 Would normally result in: select…
dcd0181
  • 1,493
  • 4
  • 29
  • 52
3
votes
3 answers

Consistency check of data

I have data stored in three columns of Excel. Column A: Product no, Column B: Production site Column C: Sales code I need to check the consistency of the first 6 digits in the Sales Code for each product no. So for example, for all products with…
user2453166
  • 31
  • 1
  • 2
3
votes
4 answers

How to find directories with the name of specific length

How could I find directories with the name of specific length? For example, I have bunch of directories which have length of the name equal to 33 chars ('a92e8cc611fdebcca3cf2fc8dc02c918', 'c442fb3f46d6c8bd17d27245290a9512' and so on). Does find…
altern
  • 5,829
  • 5
  • 44
  • 72
3
votes
1 answer

delete all files within a directory that are older than 1 day

I need to ensure that I have no old files left in my directory so what I think I do is find . -type f -mtime +1 -delete i got that from the find man page but then find . -type f -mtime +1 -exec /bin/rm but again, now told that find: -exec…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
3
votes
1 answer

How can I compare two arrays, removing similar items, without iterating through the whole array?

Is it possible to compare two arrays and remove the values that are equal (if they are at the same index), without iterating through both arrays? Here is an example: $array1 = @(1,2,3,4,5,6,7,23,44) $array2 = @(1,1,3,4,5,7,6,23,45) $array3 =…
EGr
  • 2,072
  • 10
  • 41
  • 61
3
votes
1 answer

Disabling display of the full file path in Visual Studio 2008's 'Find Results' window

In Visual Studio 2008, in the Find Results window, how do I not show the full path of the file name where the match was found? The thing that I'm trying to get around is where most of the window is just displaying a long path rather than the chunk…
Adam Kane
  • 3,996
  • 7
  • 44
  • 53