Questions tagged [find]

The find command in Windows systems is used to filter lines of input text, and return those matching the filter. The find command in *nix system is used to locate files or folders that match a certain criteria.

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

Debugging find query with -mtime on Linux [duplicate]

For some reason reason find command with -mtime option is not working for us. We have files that meet the mtime criterion specified but find is not giving any hits. First of all here are all the ...
user avatar
  • 103
0 votes
0 answers
41 views

Can I use regex in find path?

env = bash, centos7 My goal is to delete jenkins workspace cache files under specific path, except for today's. Successful command : cd /jenkins/jenkins/workspace/CMSvc_Build/caches/modules-2/files-2....
user avatar
1 vote
1 answer
49 views

How to find a character in a string using Powershell?

Using Contains to find a value using PowerShell is not working. Full Story: I have to get the PartNo, Ver, and Rev values from an SQL DB, and check if these values occur in the first line of the text ...
user avatar
  • 13
0 votes
0 answers
17 views

Bypass Apples SIP to check if in /private are larger files than 10G

I try to write a script that checks if in my System are Files that are larger than 10G. I use the "find ... -size +10G" command. But if i'm trying to access for example the /private Folder i ...
user avatar
0 votes
0 answers
32 views

How do I find all php binary path's on a linux server?

A server has multiple php custom versions, which were installed with ISPConfig 3. I am trying to find the path to each version so I can run a cron with the specific binary. I have tried the following ...
user avatar
0 votes
1 answer
121 views

7-zip windows command to extract .rar from a networkshare recursively but keep files in the dir with the .rar file

Long story short I have one folder on a network share, that has 200+ other folders in them, some of which have .rar files in them. I want to extract all the .rar files IN PLACE. Not to another dir. ...
user avatar
1 vote
1 answer
28 views

Searching for multiple line breaks in Notepad++

I have a large text file that I am editing in Notepad++ and want to search for all instances where there are two line breaks and a particular string of characters on the following line (i.e., two left ...
user avatar
0 votes
1 answer
68 views

Google Chrome Bookmarks File is NOT in the Default Folder Everyone Says It's In -- So Where Is It?

I have hundreds of bookmarks in Google Chrome, on my Windows 10 system, and they all work fine in Chrome, but I want to look at the place where they are on my computer, and I can't find them. I am ...
user avatar
0 votes
0 answers
20 views

How to highlight text that is not available as typical HTML Element Text?

We can press Ctrl + F in browser to find a text on the page as it gets highlighted if found a match. Even we can use good browser extensions to define our keywrords and then use the extension ...
user avatar
0 votes
0 answers
24 views

Random "The active directory domain services is currently unavailable" error

This error started appearing today, seemingly at random times, while I'm working, browsing or gaming. The following 2 windows open. I tried finding more info using Process Explorer and apparently the ...
user avatar
  • 165
0 votes
0 answers
42 views

Calling exiftool on a huge number of recovered images from photorec

I am trying to recover images of the last 20 years from a friend. She moved all recent files to trash, then emptied the trash. Those images were lying on the system partition, so photorec found a huge ...
user avatar
  • 101
2 votes
0 answers
20 views

Testing deleting files over a certain age [duplicate]

I have a server running Ubuntu 20.04.3. On this server there is a process which dumps a MySQL database and then tar's the files once per day for backup purposes. My goal is to write a script which ...
user avatar
  • 21
0 votes
0 answers
21 views

How to pass whitespace to directory path in updatedb?

How to pass whitespace to directory path in updatedb? $ sudo updatedb --localpaths='/mnt/c/Users/jayra/Google Drive' /usr/bin/find: '/mnt/c/Users/jayra/Google': No such file or directory /usr/bin/find:...
user avatar
0 votes
1 answer
89 views

List all sub-directories with a specific pattern in bash and execute a command

I have a directory like this: . ./foo/.bar/bar/file.jpg ./foo/.bar/xyw/dummy.fil ./foo3/.bar/file.jpg ./foo3/.bar/bar/file.jpg ./fo/bar/file.jpg I'm trying to list all subdirectories that contain the ...
user avatar
  • 3
1 vote
1 answer
71 views

Copy all files from past 6 months and preserve directory structure (Linux)

I have a folder on a Linux machine that I want to copy for backup purposes. Since it got too large lately, I only want to copy the files that have changed in the past 6 months, but preserve the full ...
user avatar
0 votes
0 answers
32 views

How to make fzf respect `FZF_DEFAULT_COMMAND` when using it through `FZF_COMPLETION_TRIGGER`?

As stated in the README, fzf only honors FZF_DEFAULT_COMMAND when invoked directly, and there is a separate setting FZF_CTRL_T_COMMAND. However, when I type a file pattern followed by a completion ...
user avatar
0 votes
0 answers
34 views

How to find a word only in selected text?

I usually use Chrome browser and I'd like to know how can I find a specific word only in selected text, not in all webpage when pressing Ctrl+F. How can I do it? You can suggest any other browsers if ...
user avatar
0 votes
0 answers
20 views

Retrieve missing ODF file

I am using Ubuntu 20.04. I was searching for an ODT file I have created recently. Sadly I couldn't find it in the folder where I thought I had saved it, neither anywhere else or in the trash bin. It ...
user avatar
0 votes
1 answer
129 views

search over all drives in git bash crashes - "failed to read file names from file system at or below '/': No such file or directory"

I am using the git-bash for windows (what is internal msys2). I needed to search over all of my harddrives. When I try to run find / -type d (and my search patterns), the search runs over the system ...
user avatar
  • 612
1 vote
1 answer
33 views

regex in find doesn't accept the or operator in group

I'm trying to delete all files and directories in a parent directory, with the exclusion of some directories and their content. For this I use find in a bash script on MacOS. It works if I exclude ...
user avatar
  • 13
0 votes
2 answers
38 views

How to delete any files that have not been used (access, change or modify) in X years

i run this command find BAR -type f -mtime +1095 # older than 3 years and find this file: BAR/foo.pdf So i run this: stat BAR/foo.pdf Access: 2020-01-03 01:32:05.584393000 -0500 Modification: 2017-...
user avatar
  • 609
0 votes
0 answers
39 views

How does the use of find command result in a permission denied error?

Please have a look at my code: apple@apples-MacBook-Pro ~ % find ./ -name Desktop -type d .//Desktop find: .//Documents/Library: Permission denied Would someone explain to me what does the second ...
user avatar
  • 399
0 votes
0 answers
63 views

Is there an alternative command or way to speed up find in LFTP?

There is an FTP server I'm connecting to, and it could possibly have 20-30k zip files and an assortment of subdirectories. I would like to return a list of all of these files based on their extension, ...
user avatar
  • 3
0 votes
0 answers
172 views

GNU `find` error: "find: failed to read file names from file system at or below ‘/’ : No such file or directory"

OS: macOS Big Sur 11.6 I'm trying to find all files on my system that match a pattern so I can delete extraneous files after removing an application. For this purpose the application is RStudio. I'm ...
user avatar
  • 1
0 votes
0 answers
21 views

How to sort "find" results, based on last modification date [duplicate]

I would like to find the latest file, called "ServiceLocation.dll" on my PC, using Windows Subsystem for Linux (WSL). Normally I'm using find like this: Prompt>find ./ -name "...
user avatar
  • 1,462
0 votes
1 answer
40 views

How to auto-detect and export all the web links from a MS word file to a separated file?

I have a .docx file that the web links are not underlines and auto-detected as usual. Is there any way to find all the weblinks and export them to another file?
user avatar
  • 135
0 votes
1 answer
48 views

Use Excel formula to highlight chosen value from first sheet on the second sheet if matches

Is it possible to highlight chosen value from first sheet on the second sheet if matches? For example, I click on the cell with the value "Map" on the first sheet, and Excel switches to the ...
user avatar
0 votes
1 answer
65 views

Find the most recent file of a type in terminal and then open it (mac os)

I found part of this question in 2 other posted questions, but I cant seem to get the last step working which is just "opening" the file: How do I get files found by command-line 'find&#...
user avatar
1 vote
1 answer
45 views

Find isn't finding exact match in a string in excel

I wrote a code in vba in which if I enter a string in cell B8 then it will match in other worksheet ranged A6:A500. My finding text is Carlos Leather Fashion*Lefties*Alex*Mid Blue. And there is a ...
user avatar
  • 84
0 votes
0 answers
26 views

when using pdfinfo on a large number of files and directories, how do I associate errors with filenames?

I am using pdftools to count the number of pages in several thousand PDFs; the command I use is: find . -name \*.pdf -print -exec pdfinfo {} \;|grep -E '^(\.|Pages)' >> FileList That part works ...
user avatar
  • 21
2 votes
1 answer
90 views

Use pdfinfo on multiple PDFs then extract filename and number of pages

I have directories (and subdirectories) with several thousand PDFs and was trying to get the total pages in all those PDFs together. So I try running this command: find . -name \*.pdf -exec pdfinfo {} ...
user avatar
  • 21
1 vote
1 answer
23 views

using find in bash to operate of filles based on their extension patterns

I am using "find" command to delete some useless filles of the given extensions from all subfolders located in the directory from which I am executing the command. find -type f -name *.txt -...
user avatar
  • 147
0 votes
0 answers
30 views

How to sort the results of a find command by the last access time?

I find all the PDF files using find . -type f -name *.pdf How can I sort the files in the results by the last access time, and then by the last modification time? By access time, I mean the time when ...
user avatar
  • 8,025
0 votes
0 answers
28 views

How can I find all if-statements without an else?

I've got quite a lot of code in which sometimes if-statements have been written, without a matching else-statement. In some places, this is an issue, because when something fails, the failure is not ...
user avatar
0 votes
1 answer
70 views

Word Find and replace paragraph marks when there are tables

Find and replace for paragraph marks doesn't work when there are tables in the document.
user avatar
1 vote
1 answer
44 views

In MS Word, can you use advanced find to match formatted text copied to the clipboard?

I am aware that you can use Advanced Find and Replace -> Format to match entire strings formatted a certain way, e.g. as described here. Is there any way to match more complex formatting copied to ...
user avatar
  • 113
0 votes
1 answer
73 views

Microsoft Word - How to Replace Double Paragraph Breaks with a Wildcard Search?

How can I Find or Replace a double paragraph break (aka empty paragraph) in MS Word? Using Find: ^p^p will not work because the search function only returns matches found in one paragraph. (This is ...
user avatar
0 votes
0 answers
41 views

Find recently modified files of a specific type in Windows 10

I'm looking for a file which I don't remember the file name and path but do remember the file type. Can I see all files of a specific type in all directories in the order of last modified time?
user avatar
  • 1,638
0 votes
1 answer
45 views

Delete all contents of directories with given name leaving directory intact

Considering the answers for this question about deleting folders by name and this question about stopping searches at the first positive in a path tree, how can I delete all contents of a directory, ...
user avatar
  • 317
0 votes
1 answer
22 views

Look for a directory that contains two files of which the names are known

I wrote some code a while ago, and stored it in main.c. I then compiled it to test, and left it for a month or so while I waited for a use case to run my test. This is a shared server, so things get ...
user avatar
4 votes
1 answer
262 views

Subshell won't work as indented

I have some files like this: ├── abc.conf ├── def.conf ├── xyz.conf ├── 10-abc.conf.postix ├── 10-def.conf.postix and I want to remove the .postfix from all files which starts with 10-. To do this ...
user avatar
  • 143
1 vote
1 answer
19 views

How to use "find" or "search" function on formula not on values/results

I am trying to create an Excel test for begginers but in order to automatically check the answers I plan to put IF/AND function, to check correct result and to check if propper function is used, but ...
user avatar
  • 193
0 votes
2 answers
292 views

find -exec with wildcard

I am trying to use bash 'find' to process all folders that contain a .log file and get their sizes. However the wildcard is not working as expected. This returns nothing: find . -type d -exec test -e ...
user avatar
1 vote
1 answer
167 views

How to find "#VALUE" cells in Excel?

In Excel 2007 I have two sheets: sheets1 with data sheets2 links with some formulas data from sheets1 If a formula does not work in sheets2 I have cell that shows #VALUE!, but in the bar I can see ...
user avatar
  • 746
3 votes
2 answers
559 views

How can I modify path coming from {} in `find -exec`?

I've been reading quite a few posts howto find files and copy those. What I want to achieve. Copy all *.jpg files from every directory to one directory. To avoid overwriting my intention is to add or ...
user avatar
  • 41
0 votes
1 answer
43 views

Why find is giving inaccurate responses for 1M and 1G size?

Why find is giving inaccurate/weird responses when I try to look for files that are 1 megabyte size or 1 gigabyte size ? Or even less than 1 megabyte or 1 gigabyte. [root@server1 ~]# ls -lh total 7.8M ...
user avatar
1 vote
2 answers
113 views

Generalized chmod function differentiating between directories and files (i.e.: with find)

Is there a generalized bash function available that mimics chmod in every aspect, except that it also let's me differentiate between files and directories? I know there's already numerous examples ...
user avatar
0 votes
1 answer
393 views

How to start fzf from another directory than the current working directory?

I often use fzf to navigate the filesystem, especially the Alt-c key binding. When invoked, fzf generates a list from the current working directory. Is it possible to make fzf generate a list from a ...
user avatar
  • 483
0 votes
1 answer
323 views

"find" using LFTP tries to access arguments

I connect via lftp -u username, sftp://server.name.com:/directory to a sftp-server, which works correctly. Anyhow, I want to use find. -name *someWildcardExpression -type f -delete in order to delete ...
user avatar
  • 103
0 votes
1 answer
80 views

move folders recursively using find

Please see the below issue. Actually I wanted to move only 20022021 folder (which cotains subdir and files) to the destination, But its moving both the directories. nasa:/# find /tmp/source -mindepth ...
user avatar
  • 3

1
2 3 4 5
21