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

0
votes
1answer
25 views

Copy matches of recursive search to a new location

I want to search a directory recursively and copy all XML files to a new location. I can identify the files with: ls -R | grep .xml$ or with full paths with: find . -name \*.xml Results of ...
1
vote
2answers
20 views

Is there a way to give focus to Chrome search result?

It is well known that one can use Ctrl+F to find textual content in the webpage, but after I found what I need, is there a way to give focus to the search result, so that if the result is a link or a ...
0
votes
1answer
32 views

copy files to other folder - find

I have to copy files to folder with name with their type using command 'find'. There are a lot of files with a lot of folders. I tried command: find ./find -type f -exec bash -c ' file -b "$1"|cut -d ...
2
votes
1answer
146 views

Delete all not jpeg files

I have exercise, in which I have to delete all files, which are not jpeg. I tried find -type f |xargs file| grep -iv 'jpeg', but it doesn't work.
1
vote
1answer
22 views

The correct way to use find prune

Facing the same problem as Why doesn't 'find' prune the way I think it should?, but that accepted answer doesn't work for me: Here are my files: $ find . . ./resources ...
0
votes
0answers
11 views

Copy all searched files from remote to local

I have mounted remote server location "www.blah.com/tmp" to my local machine at /mount/remote. Now when I do this $ cd /mount/remote then $ find . -name CRASH* -print It prints the respective ...
1
vote
1answer
14 views

Abobe Brackets how to find in a folder

In the official web: https://github.com/adobe/brackets/wiki/How-to-Use-Brackets Under the title: 'Instant Find in Files' they say: "You could even make the search in a specific folder" Can anyone ...
3
votes
1answer
25 views

Trying to create a shell script to move all files with a certain year in their name to a year based directory

Here is the block of code that I have so far. No matter what I do with the find command, I can't seem to get it to function as I want. Trying to move all files with these long year names into their ...
1
vote
1answer
30 views

How to grep in Windows for for eval code?

I have written this code in Linux, How can I achieve the same in Windows server ? find "dirname" -name "*.php" -exec grep -PHl "(eval\(.*\);)" {} \; Basically I want to find out this pattern ...
2
votes
2answers
20 views

How can I find a particular named file within a particular named directory that could be anywhere in file system?

I am trying to find a file within a directory where both the name of the file and the name of the directory are known. For example, say I want to find "...don't know this part of file path ...
1
vote
2answers
23 views

Finding php files that have numbers in the filename

Can someone help me with a command line to find all .php files on a server with a number in the filename? I have searched, as best I can, for other answers, but they typically show for a specific ...
0
votes
0answers
16 views

Start text search from focus point in chrome

In chrome, when I start typing for a text search, it searches from the beginning of the document rather than from where I am looking in the document. Is there a way to do the latter? (currently I have ...
5
votes
1answer
29 views

How is the command line built for find -exec command {} +

I find the manual explanation for find to be a little unclear. What is the meaning of "but the command line is built by appending each selected file at the end; the total number of invocations of the ...
2
votes
1answer
18 views

Why does the behaviour of find(1) differ when explicitly adding -print?

The man page for find(1) says: If the expression contains no actions other than -prune, -print is performed on all files for which the expression is true. However, there seems to be a ...
0
votes
2answers
20 views

Find files to find multiple instances of the same code with Notepad++

I might have inserted <meta charset="UTF-8"> twice in some HTML files, and there are too many of them to check manually. Is there a regular expression I can use with Notepad++ to search for ...
1
vote
0answers
17 views

find command operator associativity and its effect to execution speed

Let's say in a folder structure there are files of extensions ext1, ext2, ext3 (in the decreasing order of number of files in each type), and some other files that we don't really care (in total, ...
1
vote
2answers
23 views

Compare list of files from a database using find to locate missing files

I have a list of 2000 files from a database that looks like this: ./aa/0f/unique-string/IMG_0987.JPG ./ab/cf/unique-string/IMG_0987.JPG I want to compare that list to the actual directory contents ...
0
votes
1answer
13 views

find certain item of a file by using command line tool in windows 7

recently I used findstr "ItemThatIsBeeingSearchedFor" C:\Windows\System32\drivers\etc\hosts > J:\documents\HostsFile\ResultOfSearch.txt in order to output a certain entry of the hosts file into ...
0
votes
1answer
26 views

Search directories listed in the PATH environment variable

I am trying to find and remove any instance of a .dll that appears in any directory that's on the PATH environment variable in windows. Is there an easy way to do this from the CMD window?
0
votes
0answers
8 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 ...
1
vote
1answer
25 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 ...
0
votes
1answer
34 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
1answer
25 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 ...
2
votes
2answers
44 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
42 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
53 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 ...
1
vote
4answers
104 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
21 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
80 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 ...
2
votes
1answer
54 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
17 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
42 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 ...
0
votes
1answer
19 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: ...
2
votes
0answers
19 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 ...
0
votes
0answers
79 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 ...
0
votes
1answer
62 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 {} ...
1
vote
2answers
76 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
2answers
56 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
47 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
63 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 ...
0
votes
2answers
58 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 ...
0
votes
1answer
30 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 ...
1
vote
0answers
28 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 ...
2
votes
1answer
50 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 ...
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 ...
0
votes
2answers
116 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
60 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
124 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 | |___ ...
0
votes
1answer
77 views

How to rename files to monotonically incrementing sequence numbers followed by a suffix?

I want to rename all files under a particular directory to a number followed by a suffix. For example, I want to rename all *.jpg files to 1.jpg, 2.jpg, 3.jpg, ... I thought about using find for this ...