Questions tagged [find]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

How do I use the for loop in conjunction with other functions?

How do I use a for loop with range () iterate over the alphabet a to z (using Ord () to traverse and chr () to get the characters in the sentence only? I am supposed to display each letter in ...
Michael's user avatar
0 votes
0 answers
23 views

Where is this file in Windows? /home/f515c326-589b-4129-8fbc-af1053ae8b58/deneme.txt

dosya = open(“deneme.txt”, “w”) print(“Ben Python, Monty Python!”, file=dosya) dosya.close() After import os os.getcwd() the result /home/f515c326-589b-4129-8fbc-af1053ae8b58/deneme.txt this is ...
Mertua's user avatar
  • 1
0 votes
2 answers
26 views

jQuery - find object in array of objects based on partial match of one element

I have an array of objects, with one element being comma separated list of values. When a new object is created, I want to check if there is an object in the array that, among other things, might ...
NoBullMan's user avatar
  • 2,054
0 votes
1 answer
22 views

Find value over multiple columns and rows and be given the cell address

I’ve got a sheets with multiple data (date, no. ID, type, and %) over different columns and rows from a1 to yt:100. On another sheet, I’ve managed to list on a single column all the no. Ids and now I ...
Matteo Ciccone's user avatar
-1 votes
1 answer
39 views

answer sum a column between two searched values ( modified question and data) Not sure where to start [closed]

enter image description here SUM "B" column between two searched values in "A" column THEN LOOP through several hundred rows later in a seperate piece of code I will SUM groups of ...
jamesrnz's user avatar
-2 votes
0 answers
20 views

Detecting pdf windows - Java [closed]

How do i check if a user has a specfic pdf opened on their machine? I know i'll probably have to "find" the window by title, but I'm having an issue with the fact there are different pdf ...
compSci3829423's user avatar
0 votes
2 answers
54 views

sum a column between two searched values

SUM "B" column between two searched values in "A" column THEN LOOP through several hundred rows later in a seperate piece of code I will SUM groups of SUMMED columns ' find ...
jamesrnz's user avatar
0 votes
1 answer
43 views

Using find to process folder names (containing whitespace and ') for a bash script fails

Using bash version 5.* I created a script that creates a script that will play video and/or audio files in the given folder, the created playing-multimedia-files script using this function ffprobe -...
Rava's user avatar
  • 61
-1 votes
0 answers
44 views

Why result find in shell script is current folder for start search?

There is a shell script that searches for a binary file and performs byte search and replacement in it. This is done in macOS Monterey. #!/bin/bash set -x declare -r dir=$( dirname "$0" ) ...
Drovosek's user avatar
1 vote
1 answer
70 views

Mongoose exclude documents that contain specific nested object in array

I have collection of objects similar to this (simplified for the purpose of this question): _id: '6509e5f504613ddc1d92c62f', matchingHistory: [ { color: 'red', shape: 'square', size: '...
lokers's user avatar
  • 2,118
-1 votes
2 answers
66 views

Delete a file if it lacks a duplicate (partner)

Given to the success of the question I posted here: Find empty files and their duplicates, thank you Freeman & Mark Setchell, I am now encouraged to ask another related question. In this case, ...
Dellu's user avatar
  • 153
0 votes
1 answer
39 views

How do I get some lines from TXT file with CMD (Only Windows Command Line)

I want to check the status of the USB scan device connected to the remote computer using the Windows command line, cmd.exe. (I only use Canon and Fijutsu brand scanners) The command I use: pnputil /...
Hakan DAŞTAN's user avatar
-1 votes
2 answers
83 views

Find empty files and their duplicates (partners)

I am trying to train tesseract. The process involves creating triples of files: box files, text files and image (tif) files. The tool that creates the .box files sometimes creates empty files. Those ...
Dellu's user avatar
  • 153
-1 votes
0 answers
20 views

How to find all text matches in all opened files without 'previewing' the file in Visual Studio Code?

How can I search for a specific text string in all currently opened files simultaneously without having to open and search each file individually? When I use the search function (e.g., Cmd + Shift + F)...
Tweenky X's user avatar
0 votes
0 answers
7 views

Mathcad iteration with condition

enter image description heretrying to do a iteration in Mathcad, but all new to the program. This i my scrip so far. Script attached. Trying to find two variables (x,y0) with the find function in ...
AELS's user avatar
  • 1
-1 votes
2 answers
39 views

Print the Immediate Left Character of the Text Searched in a Text File Using Python

As I am running a program where I want to replace the searched text with my replacement text. However, at the first instance it does the great work but on running the next instance it is not ...
Arun Pandey's user avatar
0 votes
0 answers
10 views

Finding a layer in Visual Laser Marker

I have a problem with execution. When I try to execute I got message that there is missing a reference in VLM. The error is:969xxxxxx.vlm:Object'Group1234', ID = 123 reference missing QP-set'Layer' I ...
Miloš Simonović's user avatar
0 votes
0 answers
17 views

Sequelise find function not working with postgres datasource

I am trying to do a simple find from postgres table using sequelize find function. But the function is neither returning any result nor the exception. It would be great if anyone can share some ...
Prerna Jain's user avatar
  • 1,240
0 votes
1 answer
24 views

Cannot find the correct result with Find method in Excel VBA

I have a worksheet with full of simple data and complex formulas. I want to find special cells which contain specific characters. Try to use the Find function, but not gives back the correct result ...
Black cat's user avatar
  • 1,353
0 votes
1 answer
22 views

Mongoose "Find" not returning same results as Mongo Shell

I am facing a problem while using the find function from the Mongoose package. When I call the function it returns nothing. However using MongoDBCompass's shell I get the results as expected. Here is ...
usama rashad's user avatar
0 votes
0 answers
15 views

How to paginate relations in a find/findOne using TypeORM

Using TypeORM let's assume I have two entities in a one-to-many relationship. Product and ProductImages. Each product has many images. When I do a findOne of a product I bring together multiple images ...
user3788133's user avatar
1 vote
1 answer
63 views

Find and change multiple strings in the entire registry using powershell commands

I'm trying to make a script to change values in the entire registry in all keys and subkeys for a string called "Value" and make it 0. So whenever string "Value" is found, it's ...
axl19's user avatar
  • 13
1 vote
1 answer
44 views

Using printf in "find" command

With the following command, I want to find a specific file name, print its name and then compress it in-place with bzip2 command. The compression works but file name is not printed. $ find . -name *....
mahmood's user avatar
  • 23.4k
0 votes
0 answers
12 views

what is mean by scalar value mean in mongoDB while making quety , db.book.find({author:"sam"})

what does scalar value mean in this question ,please make me understand i know what this query does , it not only return the field with single value but also return the array containning this key word
Avik Biswas's user avatar
0 votes
0 answers
17 views

Selenium find.by

Good day. I am starting to learn Selenium and I am a beginner. I have this problem: I need to select all head-to-head matches (for example, Djokovic-Alcaraz 2:1...) from the entire Tipsport site. ...
user22516966's user avatar
0 votes
1 answer
24 views

Why does this wildcard search string return 'pattern match not valid'?

In Word's Find and replace dialogue, with Wildcards turned on, the below works ^013[1]. (*)^013(*)^013[2]. (*)^013(*)^013[3]. (*)^013(*)^013[4]. (*)^013(*)^013[5]. (*)^013 The below does not work. ^...
Ne Mo's user avatar
  • 190
1 vote
1 answer
46 views

Python Scraping Problem with Beautifulsoup on Zara

I'm trying to webscrape Zara with this code(below), in the result I want to get the price of the product but I cant and I get the answer "[ ]". What should I do ? Thanks in advance. from bs4 ...
Erdem Kabadayı's user avatar
3 votes
2 answers
82 views

Bash script to remove folders older than X, but skipping newest N... Compatible with special characters in path

I am writing a backup script in bash and want to delete all backups older than X days, while leaving at least the newest N backups. This seems so simple, yet I have not been able to find a solution to ...
smatberg_gpe's user avatar
0 votes
0 answers
14 views

How do I process the value of each received Mongodb object

I am writing a telegram bot and using mongodb database. I need to view all users who have the same value, so I need to display all these users in one message. bot.deleteMessage(chatID, msgID) ...
Basanas Lokwen's user avatar
1 vote
3 answers
59 views

bash one-liner/script to execute a command on files that do not have an associated file

The following executes do_x.sh on all files of type a_???.json recursively. However, I would like to do the same on a subset of these files that do not have a corresponding file with the same name and ...
Tims's user avatar
  • 629
2 votes
2 answers
82 views

unable to run source command with find -exec [closed]

FAIL find ${settings_base} -type f -exec source {} \; find: ‘source’: No such file or directory PASS for f in $(find ${settings_base} -type f); do source "${f}" done I just want to ...
k_vishwanath's user avatar
  • 1,366
0 votes
4 answers
53 views

Find last matching value in dataframe column

I have dataframe with column "status" with values: True, False, False, True, True I would like to find the last position of False and get dataframe with only last two values.
Teresa Sergiel's user avatar
-1 votes
1 answer
43 views

How to solve issue Argument list too long in grep command? [closed]

How to solve issue Argument list too long in grep command? I need to execute grep command grep '^ORA' '/log/bssuser/CDR/Postpaid_CDR_Log/'*.log > output.txt I have error : -bash: /usr/bin/xargs: ...
Amany Abd Elmnem's user avatar
0 votes
0 answers
33 views

How to find documents and NOT convert all _ids to String in MongoDB

Whenever you use collenction.find({}) all fields that contain ids like {"$oid": "64e6fb236049651f4cebdc1"}, automatically get converted to String "64e6fb236049651f4cebdc1"...
Ruslan's user avatar
  • 53
0 votes
0 answers
12 views

pass arguments to gnome-terminal from find -exec command

i a file call "runAllBestScripts.sh". That file has this command: find ~ -maxdepth 1 -type f \( -name 'best*' -a -not -name 'buns*.sh' \) -exec gnome-terminal --tab --title="Build {}&...
thugmunch's user avatar
  • 133
-2 votes
4 answers
72 views

How to use Bash to grep, excluding some patterns, and including others?

In the file find.out I want to grep and find lines that have 'FinancePlus', 'Sungard' and 'Pentamation' and I want to exclude lines containing 'PROPRIETARY, 'CONFIDENTIAL', 'Public' I can get the part ...
user5586678's user avatar
0 votes
0 answers
36 views

Bulk Find/Replace Across Multiple Files

I am trying to modify a QTIv2.1 package, and need to replace thousands of strings from one value to another across 50+ imsmanifest.xml files. Is there a simple way to find the value (example: LA.R.3.4....
Dan B's user avatar
  • 1
0 votes
0 answers
17 views

VBA Find is throwing Run-Time Error '91': Object Variable or With Block Variable Not Set. Here Sheet(5) has Ins for numbers, add X in Sheet(7) 4 same [duplicate]

Sub FindIns() Dim Rng As Range Dim InsuredCell As Range Dim CopyArticle As String Dim FoundArticle As Range Dim Insured As String Dim FirstCell As String Insured = "Ins" 'To check the Ins ...
Ekknath Jujare's user avatar
0 votes
1 answer
17 views

MSword - How to use find and replace to conduct advanced replacing

I have a document with many regression tables. The p values are denoted for every coefficient as "p = 0.xxx". This makes the tables look ugly and messy. How do I implement find and replace ...
fsure's user avatar
  • 139
0 votes
1 answer
23 views

Find the name of SQL Server database which contains a user defined function

I am having many databases in my SQL object explorer. I found some function being called in code but not sure from which database it is trying to find it. Is there any way to get the name of database ...
Azhar Majeed's user avatar
4 votes
2 answers
64 views

Search text and use specific formula for text found

I have a table like this On the left : list of text I'm looking for in a cell. On the right : formula I'll use depending on the text I've found. The formula is necessary for a text extraction (which ...
EagleWatch's user avatar
1 vote
2 answers
46 views

How can I find a row inside pandas DataFrame with row data?

Let's say that I have a pandas DataFrame: import pandas as pd df = pd.DataFrame({'id': [0, 2, 1], 'name': ['Sheldon', 'Howards', 'Leonard'], 'points': [10, 5, 20]}) I wanted to search for a row with ...
DazzRick's user avatar
0 votes
0 answers
4 views

Change all entries in a column when 1st 9 digits match the 1st 9 digits from another sheet

In Sheet 1 col X is my master list starting row 11 with unique 9 digit refs A-1/10000 TEXT FOLLOWS A-1/10001 TEXT FOLLOWS A-1/10002 TEXT FOLLOWS A-1/10003 TEXT FOLLOW I have a stored list ...
user9035142's user avatar
0 votes
1 answer
29 views

NotePad++ - Replace 100+ unique lines in file with new unique lines

I am trying to take a large text file and replace about 140 rows of the data with brand new rows of data. I have all the rows I need to replace in a text file, along with the new rows, but can't ...
janderson055's user avatar
1 vote
1 answer
31 views

Find -prune argument order affects output list

I have the following directory structure (minimal example): testdir testdir/test2 testdir/test2/test2a testdir/test2/test2a/test2aa testdir/test1 testdir/test1/test1a testdir/test1/test1a/test1aa ...
bproxauf's user avatar
  • 1,086
0 votes
0 answers
40 views

Find the second position of a text in python

In this example: txt = "Hello, welcome to my world." x = txt.find("e", 5, 10) print(x) X value is 8. find is working between caracter 5 and 10. I have a string variable, got from ...
Fellipe Zambrano's user avatar
0 votes
2 answers
66 views

Excel Formula or VBA to find next cell in a row with a wildcard value AFTER date column

I am trying to make a column that shows a student's next planned event. I have some code that works but I would have to copy paste it for every single line offset and update it every time a student ...
Brandon's user avatar
0 votes
3 answers
33 views

Removing a File Extention from a String in Python (Reverse Indexing)

In a recent project I had to remove the '.txt' extention in a string. I tried using the .find() function as well as .index() and .search() in many ways but nothing came out of it. So, I wrote the ...
overErrored's user avatar
0 votes
1 answer
20 views

Ansible Find command + copy file to a backup directory

A small question because I struggle a little with Ansible because I do not yet master it well. Here, I would like to search on my machines for a directory here "cells" Once I have the list ...
cédric Goulois's user avatar
0 votes
1 answer
42 views

make: automate changing file permissions with Makefile

I have a directory structure with projects, and I need to make sure that when I copy new files, the directory structure has the correct permissions (basically, as if created with umask 022) and ...
Martin Vegter's user avatar

1
2 3 4 5
224