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

6
votes
4answers
4k views

How do I run this `find` command, but only on non-binary files?

I want to remove trailing whitespace from all the files in a recursive directory hierarchy. I use this: find * -type f -exec sed 's/[ \t]*$//' -i {} \; This works, but will also remove trailing ...
1
vote
1answer
10 views

How to quickly move focus from the “Find” navigation pane to the beginning of the first found item

How can I most easily go from finding some text in the Navigation Pane to having the focus back on the beginning of first found instance of that text in the document? I am going through long documents ...
2
votes
6answers
9k 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
0
votes
1answer
18 views

Use the same “find bar” in all tabs in Firefox

Before, the "find bar" (what you get by pressing ctrl-F) was the same for all tabs. But now it is separate per tab. That is, if I write a word (e.g., "hello") in the bar, I go to another tab and I ...
0
votes
2answers
842 views

Copying all files inside subdirectories and renaming instead of overwriting

I have a number of images inside subdirectories of another directory which I'd like to copy to one single directory so all the images are in one place. After a bit of searching, I found and then ...
-1
votes
0answers
9 views

Why do some pages returned by Google Search app on iPhone fail “Find text on Page”? [on hold]

Find-text-on-page fails on some pages returned by the Google Search app on the iPhone 6 (possibly others). It does not fail on all such pages but it does fail consistently on some. You can duplicate ...
0
votes
2answers
5k views

How to search contents of files in folder?

In Win 7, how can I search for a word in the contents of all files in a specific folder. In XP this was easy. All you had to do was type the word into the "A word or phrase in file" text box on the ...
39
votes
4answers
35k views

How can I recursively copy files by file extension, preserving directory structure?

At the Linux command line, I'd like to copy a (very large) set of .txt files from one directory (and its subdirectories) to another. I need the directory structure to stay intact, and I need to ...
10
votes
4answers
10k views

How can I search a file by its name and partial path?

Often I have a file name and it's partial path, e.g. "content/docs/file.xml". Is there a simple way to search for that file, without manually cutting into parts its name to provide directory name ...
0
votes
1answer
12 views

Find next in vimperator?

I'm new to vimperator. Like it for the most part, but a major problem for me is the inability to find next/previous using n and N. After I do /search_term, pressing n or N only adds to the search term ...
10
votes
3answers
7k views

Equivalent of Unix find command on Windows

What is the equivalent of the Unix find command on Windows? I see that the find.exe on Windows is more like a grep. I am especially interested in the equivalent of find . -name [filename]
0
votes
1answer
23 views

Sublime Text - Find next - go back to beggining of file like Chrome does

In Google Chrome, when you search for a string and you keep pressing the "down arrow", if you are at the last string found, and you click again the down arrow, if goes back to the first string found ...
2
votes
2answers
32 views

Way to get Microsoft Word to remember “Find and Replace” entries for auto complete the next time after closing Word?

After you use “find what”, or “replace with”, the entry will be remembered for auto complete the next time. When you quit Microsoft Word, the suggestions are no longer remembered. Is there a way to ...
2
votes
1answer
24 views

mac find -name *.png does not work [duplicate]

I am trying to recursively search for a filename ending in .png My find command works fine for *.js, but not for *.png. ~ >find dev -name *.png ~ >find dev -name bluerightarrow.png ...
0
votes
2answers
20 views

How to search using find command in external hard disk

I have an external hard disk. I have to search for a folder called Visa in that external Hard disk named ASTUTE. There might be multiple VISA folder but I want to search for all of them. I navigated ...
21
votes
4answers
14k views

Exclude hidden files when searching with Unix/Linux find?

What options do I need to use with find to exclude hidden files?
1
vote
4answers
70 views

Find directories that contain more than one file of the same extension

I’m using Debian 8.0 and would like for example to find directories that contain more than 1 .mkv file. I tried this and it failed: find -type d -exec find {} -name '*.mkv' | wc -l\; There is a ...
0
votes
1answer
4 views

Define path exclusions for find globally

I have 2 directories that I want to exclude from all my find searches: .git and node_modules I've been trying to define an alias that would do it, but haven't been successful. Something similar to ...
0
votes
1answer
18 views

Using grep for text search

I need to search the filesystem for text strings that match some string. I'm trying to get where the commands are used, meaning in which files they are called or used. I need to find every file where ...
0
votes
1answer
27 views

Linux Bash: Moving/Copying files/directories by timestamp

This is the command I am using: find absolute-path -name "*" -amin -120 -exec cp -f absolute-destination {} \; I’m trying to copy a lot of directories from a directory to another directory, but ...
30
votes
5answers
2k views

Deleting millions of files

I had a dir fill up with millions of gif images. Too many for rm command. I have been trying the find command like this: find . -name "*.gif" -print0 | xargs -0 rm Problem is, it bogs down my ...
2
votes
1answer
29 views

find: missing argument to `-exec' when using + form of find

I want to execute a command on the paths found with the find command and I want to use + to reduce the number of times the external command is launched. Critically, the command has a fixed value ...
0
votes
1answer
16 views

how can I enable “higher elevation” in windows 7?

each time I try to save a file from Open Office or any program like it, I get requires higher elevation. I have tried to search for the file but nothing comes up and I not knowledgeable enough to know ...
0
votes
2answers
32 views

Zero out files in folder(s) that have space in file name

I'm trying to zero out (truncate) all the files in a folder or subtree that match a wildcard. Another post recommended using the find … -exec method over for variable in wildcard, which received high ...
5
votes
1answer
3k views

Bash Find Files with zero size and delete files with different extensions

This command will find files of zero size: find . -size 0 A filename returned might be filename.001 I am looking for a one liner that will delete files found with this, plus any that have the ...
4
votes
3answers
3k views

how to remove all files that created n minutes ago in linux

I guess in most cases when extracting a tar achive ,we will get a directory with the same name as the archive file but different suffix. but in some unlucky case, as I met today, after extract a tar ...
0
votes
1answer
15 views

Excel: Find&Replace issue

I'm trying to find out, how to replace only those substrings (in my case it is ,_ where _ is a space), which starts at the beginning of the cell. I suppose, the solution should be like this regex: ...
0
votes
0answers
12 views

Search in build results window - Sublime Text 3

When the Build Results panel is open, I frequently want to search in it. The only solution I've found so far is to copy all contents, open a new tab, paste contents, then do a find. Is there any way ...
1
vote
3answers
639 views

Difference between xargs /bin/ls and exec ls?

Hi this may be a very newbie question, but why doesnt the xargs /bin/ls work in this case? I thought it was supposed to be faster? Also what are those /fd/3 directories? sh-3.2# find / -name 'GOALS*' ...
0
votes
0answers
48 views

ZFS on Linux - is the .zfs special directory incompatible with find?

My ZFS pool has a number of datasets with snapshots that contain junk. I'm copying the valuable files to a new dataset so that I can then delete the snapshots. The basic approach I'm taking is to ...
3
votes
1answer
4k views

How to find hyperlinks in Excel 2010 and de-activate them?

When opening my Excel sheet using Excel 2010, I get a yellow bar at the top from Excel informing me that it has de-activated the automatic update of hyperlinks. To my best knowledge, I do not know ...
1
vote
2answers
47 views

Wildcard not working in cp command when using exec

I want to copy all the files in all the directories to the parent directory, but I get the error ./img/* is not a directory For example. Here is the command that I used. Is there a better way to do ...
0
votes
1answer
49 views

Is there any difference between -exec cmd {} and xargs -I?

Normally, xargs bundles everything together, but when used with the -I flag it seems to put evaluate everything as a single line. Does this mean it loses its speed advantage? Also if the -exec cmd {} ...
45
votes
5answers
6k views

Invoking vi through find | xargs breaks my terminal. Why?

When invoking vim through find | xargs, like this: find . -name "*.txt" | xargs vim you get a warning about Input is not from a terminal and a terminal with pretty much broken behaviour ...
0
votes
2answers
39 views

Find directory name and file size in Linux

I have various folders used for product feeds across my server named 'empro'. Sometimes these folders fill up so I find them all on the server using: find /var/www/vhosts -type d -name 'empro' This ...
0
votes
0answers
37 views

HP6600 --Mac computer says can't find printer

OfficeJet 6600 printer was working and printing fine. Now says 'can't find printer'. any suggestions? Note: the printer icon on the desk top is now showing the wireless symbol. I never set it up for ...
0
votes
1answer
40 views

Excel: Find and Replace - Adjacent Columns

In excel, after I search and click "find all", I want to see the matching adjacent column values in the results list (so I can compare them). Is there a way for me to archive something like this? Or ...
2
votes
2answers
3k views

How can I make `find` find files in reverse chronological order?

I want to find files in subdirectories sorted by timestamp (of creation), with most recent first. I have looked at the man page but it seems to only seems to let you filter by timestamp rather than ...
2
votes
1answer
63 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 say ...
0
votes
2answers
43 views

How to find files created between hh:mm and HH:MM for any day?

For instance, find all files created between 20:00 and 23:30 for any day (not a specific day)? been going through man find and didn't see anything that would do this. Would I have to write my own ...
2
votes
1answer
31 views

Using find on Linux to find files with group/other permissions that match

I've got a need to find all files in a directory where the group and other permissions match (eg. those where the group membership of the file doesn't actually affect access). Since there are only 8 ...
1
vote
0answers
24 views

finding data with multiple conditions and replacing it with new data

I am working with 2 worksheets, 1 contains all my raw data and the other works as a dashboard with my pivot table and charts. I hope you can help me create a cell input range in my dashboard ...
7
votes
6answers
10k views

Linux command to find files changed in last n seconds.

I would like a Linux command to find files changed in last n seconds. Is there a shell script or other tool that I can run from command line interface or gui?
0
votes
3answers
53 views

Why isn't & working?

So I ran the command find / .bash_profile to see if it existed anywhere on my Mac before I create one. Searching the entire computer obviously takes a minute, so I wanted to run it in the background ...
3
votes
3answers
601 views

Flatten a folder structure to a file name in Bash

I'm trying to convert files from this structure: foldera/folderb/filec.png to: foldera_folderb_filec.png I'm halfway there: find . -type f -name "*.png" | sed 's@^./@@g;s@/@-@g' which ...
15
votes
3answers
4k 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
2answers
98 views

Finding a file with vbs and the open the location folder

is there a way to make a script in vbs (or other) that search in each hard drive partition for a file and then opens the location folder of the file if the file was found? So if I want to find the ...
0
votes
2answers
180 views

Case sensitive searching in Linux

In Linux, I want to search for a word in all files in a directory (also in subfolders), and the search must be case sensitive. The search must give me all file names, directory names, and line numbers ...
0
votes
1answer
41 views

find/xargs, filenames with spaces, and quotes

I'm looking for a way to get find and xargs (GNUWin32, under Win7, both programs at version 4.1) to play along, with filenames that contain spaces. Getting the filenames into xargs as one was one ...
-1
votes
1answer
91 views

Exclude folders with a path pattern using FIND command on Ubuntu console

PROJECTS |___ SITE1 | |____files (to exclude) | |____img | |____js | |___ SITE2 | |____files (to exclude) | |____img | |____js | |___ ...