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.

learn more… | top users | synonyms

-1
votes
2answers
39 views

How to move files with a specific file extension from within a parent folder as well as its' subfolders to a new folder

I want to move all files with extensions such as: .JPEG .MP3 .MP4 .MOV .AVI .PDF .PSD .WAV .TXT ...to new parent folders named after the extension of the files contained therein. Currently I have too ...
2
votes
5answers
5k views

Find directories with all files inside older than X?

Is it possible on linux to find directories where all contained files and directories (and sub-directories' files etc.) are older than a given age? In other words, if a directory has one or more files ...
0
votes
2answers
21 views

Search through a large text file and get the line numbers which the text is found [on hold]

I need to be able to search through a text file and need the output the line number which the email address I searched it for is on. I've experience a few recent data breaches and I need to: check ...
-2
votes
0answers
11 views

how to find and highlight similar texts in Excel 2010

I am not pro in Excel. I have an excel table that I need to find similar values and highlight the the remaining texts. I have read some questions here but it was not helpful in my case. I would ...
1
vote
0answers
17 views

How to make Mac OS X <Cmd-f> “find” feature local to application window

Mac OS X El Capitan 10.11.5 Sometimes I open up multiple windows of TextEdit and multiple tabs on Chrome and use the Cmd-f to find certain text. In each window, I'm looking for different texts. ...
3
votes
1answer
35 views

Bash move and rename by parsing the output of find

I have nested directories of pdf files and I would like to extract them to a higher level directory renaming them as follows: My files are something like: ./path1/pathA/fileI.pdf ./path1/pathB/...
2
votes
4answers
342 views

Permanently set `find` regextype

GNU find allows the use of different regex formats via the -regextype option, but as far as I can tell I have to type out -regextype <whatever> every single time which is onerous. If one wants ...
2
votes
1answer
28 views

bash find list of archived files with wildcard in while loop

I have a few thousand gzipped text files in different subdirectories and used a subset of these files as input for a project a few years ago. Back then I had an unzipped copy of the files I actually ...
0
votes
1answer
26 views

How to work around the impossibility to find zero or more occurrencies in Microsoft Word?

How would you proceed about the following find and replace in Microsoft Word? Find what? D.Lgs. (that can be any combination of lower or upper case, plus the dots may or may not be there, i.e. I ...
1
vote
1answer
36 views

Find files and group into directories

I have a folder and sub folders and massive numbers of files as follows: Folder called Movies Sub Folder called "009 - A bad Wolf" Files called " 009 A bad Wolf.avi" Files called " 009 A bad ...
0
votes
1answer
23 views

Find all File to log and add string to log BASH

Find all the files in the folder, create list(log) and the log at the beginning of each Append To row "mkdir -p /VOLUME1/path Like This: /volume1/TEST/folder1/1.jpg /Volume1/TEST/folder2/2.jpg I ...
0
votes
1answer
16 views

Grep files for content

I am using 'find' and 'grep' cygwin commands in order to locate files based on some pattern. I am doing this: find . -iname '*.zip' -print -exec unzip -l {} \; 2> error.txt |grep -i vbs It ...
40
votes
2answers
62k views

How to search for ? (question mark) in Excel

When I try to find the question mark character (?) in an Excel sheet, Excel cannot locate the cells containing them. How can I search for ? in Excel?
0
votes
1answer
31 views

How can I find invalid images?

I have a directory with sub-directories. In the directories, there are a lot of images, crawled from the web. How do I loop through every file and show those files which are not valid image files? ...
3
votes
6answers
11k views

list/find all regular files in all subdirectories excluding binary files

In Linux. I know I can do find . -type f, but that includes binary file and I couldn't find a way to exclude them with find
2
votes
3answers
29 views

Removing characters at end of lines using find and sed

For a codebase converted from java to scala there are many files with unnecessary semicolons at the end. Here is my attempt to remove them: for f in $(find . -name \*.scala); do echo $f; gsed -i $f -...
16
votes
4answers
31k views

What's the difference between the find and findstr commands in Windows?

In Windows, what are the differences between the find and findstr commands? Both seem to search for text in files: find C:\> find /? Searches for a text string in a file or files. FIND [/V] [/C]...
0
votes
0answers
56 views

Connect to server via lftp and delete files older than one day

I am using lftp to connect to a remote server as: lftp -u user,pass -e "echo 'hello' ;quit" host What I want to do is to find and delete all the files in the root directory which are older than 1 ...
1
vote
2answers
24 views

Delete files with same size but keep always one file?

I have a directory full of zipfiles, that contain many files. They are created by software and this is currently not fixable. I tried to work with fdupes, but this process took too long, because there ...
2
votes
1answer
76 views

Finding files matching path pattern and size criteria

I have a server (RHEL 5) with 50+ websites currently running on the same eCommerce software, today I found one of the error log files was over 3GB in size. Is there a way I can find all files over ...
0
votes
0answers
15 views

Move Windows 8 notepad Find dialog box

I would like to move the default position of the "Find" dialog box in windows 8 notepad. I'm fairly certain that it would require an edit of the windows registry and I'm comfortable using the registry ...
2
votes
2answers
49 views

Ubuntu find files and directory matching a name in one line

There are parameters of find command for finding files and directories respectively -f and -d, but I want to avoid writing two find commands and && or || between them. I want to find file or ...
21
votes
3answers
7k views

Is there any way of making Ctrl+f in Chrome use the selected text, as per Firefox?

One thing that's really bugged me since switching to Chrome is that Ctrl + F behaves slightly differently from Firefox. In Firefox, if you have text highlighted and hit Ctrl + F, it'll start finding ...
0
votes
1answer
28 views

Linux suppress find error in bash script combined with file delete

I have a one line script which works fine but... find $HOME/html/mydir/downloads/sec/*.zip -mtime 2 -exec rm {} \; It generates an error if there are no files found and my web host then sends me a ...
0
votes
0answers
16 views

Emphasize Find results in Chrome

In Google Chrome, the Ctrl-F(on Linux) Find feature conveniently scrolls to and accentuates (highlights) the searched word in the current page. However, sometimes The result may be in a tiny font, ...
3
votes
3answers
3k views

Find directories containing a certain number of files

Was hoping I would be able to do this with the find command but I can see no test in the manual for doing what I want. I would like to be able to find any directories in the working directory that ...
0
votes
0answers
38 views

view files returned from shell commands

Very often I grep and find through directories (usually containing images) and I have to "visually" check the result before I can operate on the result (like deleting, moving, etc). E.g.: find ./...
0
votes
2answers
24 views

find -exec where filename is not the last parameter

I am trying to pass the files from find command to adb push like this: find . -name "test0[4-8]*.py" -exec adb push {} \; /storage/emulated/0/ I get an error find: paths must precede expression:...
44
votes
5answers
28k views

How do I execute multiple commands when using find?

I'm trying to run multiple commands on things I have found, how can I achieve this? find . -exec cmd1; cmd2 does not seem to work; it instead runs cmd2 after cmd1 has been executed on every file.
-2
votes
1answer
39 views

MS Excel 2010 Identify peaks in a data set, select its previous values and get a chart

I have a set of data about with approximatively 25500 cells, all contained in one column. The data has a series of peaks that occurs, and I need to identify the 2nd peak (and the 4th, the 6th, and so ...
80
votes
4answers
86k views
12
votes
8answers
13k views

Making BASH script `for` handle filenames with spaces (or workaround)

Whilst I have been using BASH for several years, my experience with BASH scripting is relatively limited. My code is as below. It should grab the entire directory structure from within the current ...
0
votes
2answers
565 views

moving the directories using find command

I am trying to find particular directory in one path and move the directory in other path using find. Source directory looks like below, /Dir1/country1/month1/date1,date2,date3 /Dir1/country2/month1/...
1
vote
3answers
57 views

Find first string in text string that is numbers only. Formulas only

Is it possible to find the first string within a string that contains only numbers/digits? I have a few thousand addresses to process and some of them have Apartment numbers. I need to find the ...
1
vote
2answers
91 views

find and exec on only filename

I need to find all files older than X days and delete them locally and from my s3 bucket. The problem is the find command returns me the full path and filename too. I tried messing with basename and ...
2
votes
1answer
39 views

Differences between how the find command interprets units of size

When I issue find / \( -type f -size +10M \) -and \( -type f -size -1G \) I don't get any results. However, when I type find / \( -type f -size +10M \) -and \( -type f -size -1000M \) the ...
6
votes
3answers
13k views

Supresss the 'no such file or directory' message from 'find'

I'm trying to find a directory with this command: find /users/dan/ -name 'Prams' -type d I see a huge amount of 'No such file or directory' output. Is there a way to make find shut up if it doesn't ...
0
votes
1answer
15 views

Using an array as search criterea for find command

I'm wondering if it's possible to declare an array of file types to then be searched with via the find command? So fileTypes=(*.omf *.jpeg *.xml *.otf) find . -name ${fileTypes} Instead of: find ...
0
votes
0answers
22 views

Dreamweaver REGEX trying to find and replace (or remove)

So far am using this: "http([^>]+) as my REGEX. The page has multiple urls mixed with text and DOM Elements. Something like: <li><a href="http://www.uen.org/toolbox">UEN's Teacher ...
0
votes
1answer
32 views

#value error using FIND

I am trying to create a formula that will pick up the value in a cell from the beginning up to immediately before the ".". e.g. Cell A2 is 1440.00. In cell B2 my formula is =LEFT(A2,FIND(".",A2,1))....
0
votes
2answers
56 views

about an example in Linux find man page

The following example in Linux find man page doesn't seem to work: find repo/ -exec test -d {}/.svn \; -or \ -exec test -d {}/.git \; -or -exec test -d {}/CVS \; \ -print -prune Given ...
1
vote
1answer
38 views

Replace multiple files recursively

I have a file structure like this: experiment/ ├── foo.txt ├── source-foo.txt └── subdir └── foo.txt I want to take the file source-foo.txt and replace the other foos with it. Just like doing ...
1
vote
1answer
28 views

Delete files with only 1 hardlink? (ubuntu)

I have a large amount of hardlinks for my MythTV recordings into another directory organized specifically for Plex. As it is now, if I delete a recording in MythTV it would still have a hardlink in ...
0
votes
3answers
31 views

How to tell what files are different on two servers

here we can see that md5sums of this two directories are different, how to tell if the folder structures or some certain files are the reason of this difference? [skynet]~> ssh evn-web04 'find /www/...
0
votes
1answer
31 views

Tar Archive All Files with Extension

I'm using this command to archive all PHP files: find -name "*.php" | sudo tar -zcpvf my-archive.tar.gz -T - It works great, except that the output is like this: ./file1.php ./file2.php ./file3....
12
votes
2answers
6k views

Create symlinks recursively for a whole tree

I am seeking for a command that would re-create a whole tree of files in a different directory. I would prefer to have all symlinks absolute. Can I do that with a find and xargs? ;-)
0
votes
1answer
57 views

A Windows application : Show live output of results(stdout?) of prespecified command

I am looking for a application that works in the following manner : The application shows/has an input area/box. And it runs a pre-specified command/application (using the input as paramas) and ...
3
votes
2answers
2k views

How to list all files in a Windows SMB network share

Given a single SMB network share (for example, \\server\\SHARED_FOLDER), I want to recursively list all the files, including those in the subdirectories (like find(1)). I would prefer to do it in ...
0
votes
0answers
47 views

Copy files and replace a directory

I have the following file structure that comes out of my continuous integration tool: stage/acme-plugin/target/acme-plugin-1.0.0.jar stage/example-plugin/target/example-plugin-2.5.0.jar but what I ...
0
votes
1answer
23 views

Error trying to copy files with find and cpio

I have a bash script that I use to periodically make a backup of proofs (PDFs & JPGs) from a server I work on. I put together the script a couple of years ago and it used to work however the ...