Questions tagged [find]

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

1
vote
1answer
14 views

Using find command to count certain type of executables

I'm trying to use Unix's find command to count the number of executable files in a directory of a certain type, namely Solaris(MSB) executable's. I know I can get the count of all executable files in ...
0
votes
1answer
13 views

dynamic exclusion of files through grep matching

I have a file source-push.sh which returns the list of files which I want to exclude from the results of find command. It looks like this: #!/usr/bin/env bash find . -not \( -path './node_modules' -...
0
votes
0answers
10 views

Signal.find_peaks_cwt missing some peaks

I applied a gaussian filter over a serie of sharp equidistant(with a distance of approximately 0.6 between them) peaks, and then proceed to use signal.find_peaks_cwt over the filtered data to find the ...
2
votes
1answer
28 views

find exec ls : No such file or directory

I tried to execute: find ~/ -name "*foo*" -exec "ls -la {}" \; And it printed: find: 'ls -la /home/users/MyUser/fooBar': No such file or directory find: 'ls -la /home/users/MyUser/Barfoo': ...
1
vote
1answer
16 views

find command regex with optional subexpression

I have the following file list file <- file.2019041543764832 <- file.2019041643764832 <- file.2019041243764832 file.2019041143764832 I want to find all ...
0
votes
1answer
25 views

Powershell find and move file

I have a long list of find and move operation, I want to slim down the file by substituting the following 2 long commands with 2 short variables. Short variables: $f ='Get-ChildItem -Recurse -...
0
votes
0answers
31 views

How to get the found array to execute the function in VBA Excel

The cell "wi.Row(foundValue.Row).Columns("H")" contains values "T" and "K". Those figures refer to function Examin01 and Examin 02 respectively.If the cell contains a "T" then function "Examine01" is ...
0
votes
0answers
34 views

String find and replace going out of bounds

I am trying to find and replace codons in a sequence with ribosomes. A large string is checked with an index from the search array, and if a match is found, that 3 letter codon is replaced with the ...
0
votes
1answer
14 views

Using Find to find a user property in Outlook/Redemption

I'm trying to return a single calendaritem from Outlook from our C# windows desktop application. It keeps returning this error: Redemption.RDOItems Assertion failed: Number of fields == 1. I use ...
0
votes
1answer
45 views

Why does using a bash variable in find fail?

I've got a find command in a bash script that works, but when I try to break it into variables that get added together it no longer works correctly. I'm not really looking for a better way of doing ...
-1
votes
4answers
45 views

How to ignore/exclude files from the output of find command using grep?

I am searching for certain files with certain extensions using find command. I would like to use grep command at the end to ignore certain files. My uncomplete command is: find . -type f \( -name "*....
-3
votes
1answer
51 views

How to implement the function find with the filter function?

I'm making some exercise to practice my Haskell skills. My task is to implement the Haskell function find by myself with the filter function. I already implemented the find function without the ...
1
vote
1answer
15 views

How to search for line with ConstructionTime(10); in a file and get the number assigned to a variable?

The command find /i "constructiontime" file.cfg outputs the line constructiontime(10); I want to read in this line and get just the number assigned to a variable independent on what is the number ...
0
votes
1answer
24 views

How to pass on defined variables in sub to function in VBA Excel

In some cells are variables given, e.g x and y which, if they are true,a function P(w) gets startet. E.g. the x which starts P() means that a value in a cell is being checked whether that value =0 and ...
0
votes
0answers
29 views

Is there such thing as AJAX loading too long?

I want to have add to cart function as submit to my system however there is a problem with AJAX I think (I'm very new with PHP). This is part of the code in the cart.js: $(".product-form").submit(...
-1
votes
0answers
15 views

Formula to find img tag and add .jpg before closing the src double quote in excel

I'm trying add jpg extension to the text inside a cell inside img src tag in excel, here is the sample text The spotlight has shone on two students from Northwestern University Film Festival. <br /...
-1
votes
1answer
29 views

Find a File By Owner In Linux

I need to find a file belonging to a specific user. I have tried using -O "userName" but, it prints: The -O option must be immediately followed by a decimal integer. I tried it with small 'o' and ...
1
vote
5answers
47 views

Find and replace string and print file directory on change

I am using find and sed to replace a string in multiple files. Here is my script: find ./ -type f -name "*.html" -maxdepth 1 -exec sed -i '' "s/${REPLACE_STRING}/${STRING}/g" {} \; -print The -print ...
0
votes
0answers
11 views

How to improve link search

For an application of use we need to search for symlinks of a file (direct and indirect (if a directory is linked, but we still need to know where a file can be found) links). We are using the find ...
1
vote
1answer
31 views

How do I rename files found with the find command

I have a series of music folders. Some of the file names contain an underscore which I would like to get rid of. With find /Users/Chris/CDs -type f -name "*_*" I find all of the files with ...
0
votes
0answers
14 views

Finding an file through a path and excute it using the terminal In Linux with C language

Im trying to write a program that will print in while loop, to enter a location,if the location exists on the path execute it,if not write no file found,Moreover if the user enter leave it exits the ...
-1
votes
1answer
24 views

Trying to run find command from a shell script in one server to another server

I have a shell script in a server A which has a find command to be performed in another server B. How do i do it? I run my script like this : ./a.sh a.properties a.sh #!/bin/sh file="$1" echo '...
0
votes
2answers
55 views

Zip together files that have filenames that match recursively through directories

Consider a file system like so: folderA - one.png - two.png - three.png folderB - one.png - two.png - three.png folderC - one.png - two.png - three.png I want to zip ...
0
votes
1answer
16 views

Why is xargs' exit code different based on the presence of “-I” option?

After reading the xargs man page, I am unable to understand the difference in exit codes from the following xargs invocations. (The original purpose was to combine find and grep to check if an ...
3
votes
3answers
68 views

How can Perl verify that a path is a directory yet not be able to call opendir() on the very same?

I'm trying to find empty subdirectories and delete them. I'm sure there are better ways to achieve this (I'm a poor programmer and relatively new with Perl) but even so, I'd like to understand what's ...
0
votes
1answer
20 views

PhpStorm: How to show exactly number of matches in Find in Path?

In PhpStorm I use Edit > Find > Find in Path to find a word. But it show the message "100+ matches in 50+ files". I would like the message to show the exactly number of matches and files.
0
votes
1answer
48 views

Finding multiple semi predictable patterns in a string

Alright, so I'm writing an application that needs to be able to extract a VAT-Number from an invoice (https://en.wikipedia.org/wiki/VAT_identification_number) The biggest challenge to overcome here ...
-1
votes
2answers
31 views

MS Word VBA Find text around a word

I'd like find text in Microsoft Word and get adjacent words. I would like to start with a word and find all the words before and after they surround it. The function should be recursive. For ...
-1
votes
0answers
11 views

giving permission to Shellinthebox to write to certificate.pem cant find fill location for “shellinaboxd”

I'm try to setup shellinthebox (for which I believe I was successful in installing) for my new linux raspberry pi 3 b+ server but it can't write to certificate.pem I have tried searching around the ...
0
votes
1answer
17 views

Copy specific named directories which content changed the last 24 hours

i can recursivly find and copy all my test-directories (with content) of the current directory: find . -name test ! -path "./my_dest/*" -exec cp -r --parents {} /path/to/my_dest \; But now I want ...
1
vote
5answers
28 views

How to find an element by data selector in an array of HTML DOM objects using JavaScript?

I've an array of HTML DOM objects: // Console output (3) […] 0: <div data-selector="5">​ 1: <div data-selector="9">​ 2: <div data-selector="2">​ 3: <div data-selector="6">​ 4:...
0
votes
2answers
32 views

MongoDB: find document whose subdocument contains a given value

Given is a Document like the following { "type" : "sometype", "title" : "sometitle", "references":{ "1": "someref", "2": "otherref", "3": "" } } How can I ...
0
votes
2answers
33 views

Backslash in find command

I have a ksh file where I have following lines of code find . \ \( \ -name \*.tar -o \ -name \*.gz -o \ -name log.\* -o \ -name out.\* \ \) \ I am interested ...
0
votes
0answers
18 views

How to create a back up of files anywhere in directory to its same directory?

I want to run a script which will modify all yut.sid files anywhere in my linux server, before doing that I want to take back up of these files appending "_bak" i.e. yut.sid_bak, the directory of yut....
-1
votes
1answer
22 views

All lines starting ABC, find a any character in position range X-Y and replace with 123

I need to find all lines that begin with 'TAG' and replace whatever is in position 52-59 (could be characters, could be empty spaces) and replace with the word 'NENTRIES'. Some example lines in file: ...
0
votes
3answers
51 views

How to use linux find command to replace special characters in all file names?

I want to replace all special characters (i.e. _?:/)(\-\n\t) in all pdf files' name by a space. I wasn't able to do that so I just tried to remove them using this command. For some reasons this ...
1
vote
1answer
30 views

MongoDB: How do you find and count in the same query with a specific format? [duplicate]

Using MongoDB, I would like to execute a find and count in a single query and print the result. I previously found this thread but it doesn't answer my question. When I replaced with the adequate ...
0
votes
0answers
6 views

Can you fuzzy search your fd subdirectories?

I've got the following folder structure: /path/to/master/ └──asdf/ └──asdf1.png └──asdf2.png └──qwer/ └──qwer1.png └──qwer2.png └──ziuo/ └──zuio1.png └──zuio2.png ... with lots of ...
0
votes
0answers
33 views

Scrape and replace multiple line strings

We use Xidel for scraping and FNR Find and Replace for replacing text. The process: scrape a .txt file for values and replace all that in another existing file. Command: for /f "DELIMS=" %v in ('^"...
0
votes
2answers
30 views

Need Help Understanding Why My Usage of the find() Method Isn't Executing Correctly

Write a function called string_finder. string_finder should take two parameters: a target string and a search string. The function will look for the search string within the target string. The ...
0
votes
1answer
26 views

Python: Group by characters before second dash

I have a string such as 'GH-TV-G090013'. Basically, I want to group a data frame by the region, which is the second pair of letters ('TV'). Right now, I have the code below. But the problem with this ...
2
votes
2answers
57 views

Find Checkbox in HTML Table Using JQuery Find Method

I have a HTML table which has the following structure: <table id="myTable"> <tr> <td><input type="text" name="FullName" value="Tom" /></td> <td><...
1
vote
2answers
88 views

VBA Loop in Word to find wildcard strings misses first occurrence

I have some VBA for Microsoft Word that is supposed to find some five digit numbers using wildcards in multiple files and then the sticks them and the path/file into an excel file. Unfortunately, it ...
0
votes
1answer
58 views

Is there a find command that shows the files from the current directory for which a certain user has read premissions?

I am trying to learn find and got stuck when tried to find files (if there are any) from current directory that a user can print (so to which user has read permissions). Pretty much what this command ...
-1
votes
1answer
92 views

How to move files including full path to a subfolder?

I've got a public folder that includes .html and non .html files in its root and subfolders. I need to move all non .html files to a subfolder of the public folder, e.g. to public/assets, preserving ...
1
vote
0answers
37 views

Angular 7+ Reactive Forms: How to find a control if I dont know the path?

Understanding question: there is still no "deepFind" isn't it ? How can I find a control in a very deep angular reactive form today? (especially then if I do not need to know the path)
0
votes
1answer
34 views

Is there something I am missing with my aggregate and find code?

So I have a working Python code for mongoDB, and for a class I am in right now, I am trying to put this code into Java. At the moment I have everything working correctly besides my aggregate portion, ...
0
votes
1answer
38 views

find all users that own files in a folder in Linux using bash

I am trying to find all the users that own files in a specific path. Right now I am using find with sort and uniq but if there are a lot of files/folders it can take a long time. I was wondering if ...
0
votes
1answer
27 views

Find A->B strings multiples times with a while loop

Hello I'm on a project who require me to find a string interval multiples times (from display_url to display_resources) in a .txt file. For now I have my code like this but when I'm running it, it ...
0
votes
1answer
20 views

Nested For loop for finding specific line in file

This code from Jeb - set "lineNr=%1" set /a lineNr-=1 for /f "usebackq delims=" %%a in (`more +%lineNr% text.txt`) DO ( echo %%a goto :leave ) :leave is not working in my case. I want to include ...

http://mssss.yulina-kosm.ru