Skip to main content

Questions tagged [find]

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

find
0 votes
2 answers
21 views

How do I use the find() method to query a mongoose schema with an enum field (can hold multiple values (array)) that includes a particular value?

I have this schema: const User = new Schema({ firstName: { type: String, required: true }, lastName: { type: String, required: true }, mobile: { ...
Textbook's user avatar
  • 119
-1 votes
1 answer
46 views

How to merge two array using .map and .find by avoiding iterating twice

I have two arrays below. I am trying to merge conditions array based on customerLOB.code match. The problem is, I am getting the results added twice because the loop gets iterated twice. How can I ...
Nancy's user avatar
  • 989
1 vote
1 answer
37 views

(standart input) shown instead file name with grep -iHn "ERROR" and a second grep -vH "filter" shows (standard input) and no longer the file name

What I try to do: Find all log files from this day Then grep "ERROR" in the files Then grep -v "Not this line containing the filter" as Filter in result of the first grep command ...
falcon68's user avatar
1 vote
1 answer
41 views

VBA Backreferencing using Regular Expressions Find and Replace

I want to standardize the formatting of some text within a Word document using VBA and regEx. For example, my document would contain text strings such as "Qty #", "Qty (#)", "...
Carter Roekle's user avatar
1 vote
1 answer
32 views

Beautiful Soup ".find" not working running from windows terminal

i'm trying to automate a program to scrap periodically some prices from amazon and other pages. (I'm starting with amazon) The problem is when i do the soup.find method with PyCharm, it finds his ...
Oscar Tarrago's user avatar
0 votes
1 answer
31 views

Bash command substitution issues

I'm writing a Python script to parse various logs across different hosts. I can successfully run bash scripts via Python's subprocess module, however, I want to minimize the number of ssh calls, so I'...
OM222O's user avatar
  • 980
0 votes
1 answer
45 views

Find/Replace Row number within Formula

I have an Excel formula where I wish to change range row number found in a specific cell. =SORT(UNIQUE(FILTER(CHECKLIST!K7:K120180,(CHECKLIST!B7:B120180=INVENTORY!H5)*(CHECKLIST!C7:C120180=INVENTORY!...
Domenic Vitale's user avatar
1 vote
2 answers
28 views

How to put the same character in the beginning of all rows using regex?

I have a list of 10 digit numbers in a txt file. I want to put the same character in the beginning of all rows using regex, without changing the numbers. I also want to put the character at the end of ...
Lime118's user avatar
  • 11
1 vote
2 answers
49 views

`find` behaves unintuitively when pruning directories

I have few files under the current directory, ./a.txt ./b.txt ./dir1/c.txt ./dir1/d.txt When I execute find . -path './dir1' -prune -o -name "*.txt", as expected, it excludes everything ...
nabik's user avatar
  • 25
1 vote
0 answers
6 views

Is there an R function that minimise a bivariate function f

I need to write a code that using the R function constrOptim, minimise an bivariate function. Please tell me what is wrong in the constrOptim , went i run the code i have this warning message "...
leonel takem's user avatar
1 vote
0 answers
48 views

Request help marrying two VBA scripts together (Find/Replace)

Attempting to add Find/Replace to existing code Starting with this piece of code which works to convert a .CSV to an .XLS File: Sub CSVtoXLS() 'UpdatebyExtendoffice20170814 Dim xFd As FileDialog ...
PatRat's user avatar
  • 11
0 votes
1 answer
32 views

Find and replace n-th occurrence in VS Code

I have a large data set that I'd like to convert into a workable csv file. The dataset currently looks like this: [att1]; [att2]; [att3]; [att1]; (...) To make this a workable csv-file, I'd need to ...
Ben's user avatar
  • 145
1 vote
1 answer
79 views

How to find file names with non-printable characters using `find` on macOS?

Some folders on macOS have custom icons that are stored in a file named Icon?, where the ? is actually a CR character, and only prints as "?" in most cases (in Terminal and Finder). But when ...
Thomas Tempelmann's user avatar
0 votes
4 answers
119 views

Create an array using item from different array

I need to create a new array of objects with 12 item (months & value) on it but it must check if the month exist on other array. If it exist it will push onto the array if not it will have a value ...
Monmon's user avatar
  • 39
0 votes
2 answers
83 views

How to remove certain line numbers from a file and save the file using the inputfilename in batch

I'm trying to edit a txt file by removing certain line numbers from it. i would like to search for all files in the folder containing .txt, remove some lines and than save the file using the ...
Desz5's user avatar
  • 3

15 30 50 per page
1
2 3 4 5
751