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

4
votes
1answer
1k views

Find on page in Google Chrome by simply typing on page

Is there a way to "find on page" without typing Ctrl + F? Firefox offers this functionality, but not Google Chrome, as far as Preferences tells me.
1
vote
1answer
8 views

Telling 'Find' to exclude core system directories (“! -name -'*.svn'” doesn't work)

I'm trying to do a "search and destroy" on the copy of GHC that's currently installed on my system (so I can reinstall a new version). As part of locating any residual files which may be left over, ...
7
votes
2answers
5k 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]
44
votes
12answers
55k views

Unix/Linux find and sort by date modified

How can I do a simple find which would order the results by most recently modified? Here is the current find I am using (I am doing a shell escape in PHP, so that is the reasoning for the variables): ...
3
votes
2answers
54 views

Is there a way in Sublime Text to display find results in a panel at the bottom of the current window?

This is a highly useful feature in other editors eg. Eclipse and Notepad++ You get to see the list of find results printed as all the containing lines with their lines in the buffer, which gives you ...
0
votes
1answer
23 views

How to find a specific row in Excell

I am looking for some formula in Excel like give me the number of the row which its first column is 5 and its second is 3 I have searched the web but I have found lookup, search, find and ... which ...
45
votes
3answers
48k views

How to find the executable files under a certain directory in linux?

How to find the executable files under a certain directory in linux?
1
vote
2answers
27 views

How can I get “find” output so that I can copy and paste it to other commands?

Is it possible to print find output paths in such a way that you can copy and paste them, they will already be properly escaped so that you can execute commands on that path? Usually I have to put ...
2
votes
1answer
57 views

Find all files matching desription and create hard link in directory

I would like to find all .mkv files in my download directory and create a hard link to them in my /movies/ directory. Here’s what I have so far: for i in `find /download/ -name *.mkv`; do ln "$i" ...
-1
votes
0answers
5 views

Office 2013 - I want it to select the remembered value in a find dialog

In my office install (specifically Word but I'm pretty sure it's common code) whenever I hit Ctrl-F to open the find dialog, the system remembers the last search string and auto-populates that value ...
0
votes
1answer
27 views

find command + remove older directories according to directory time stamp

I want to delete directories that older than 180 days for example directories that older than 180 days: drwxr-xr-x 2 root root 4096 Oct 1 2009 nis drwxr-xr-x 3 root root 4096 Nov 4 2012 pkgs ...
-1
votes
0answers
33 views

Get data from XML using FIND and FINDSTR (Only native windows capabilities) [duplicate]

This is the XML I need to get text from specific elements. I would like to use only capabilities of Windows itself and i think i have found out usable logic how to do it with FIND and FINDSTR. This ...
2
votes
1answer
2k 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 ...
0
votes
0answers
11 views

Improve google-chrome find behavior on page content change or page reload

It seems that Google chrome behavior in its find feature (Ctrl + F) is rudimentary. Consider these 2 scenarios: We are looking for a text and type it in the find text-box, then the content of the ...
0
votes
0answers
5 views

Find specific files by name and create a summary file containing info from them + name of their directory

I've a directory containing subdirectories (each of them containing also directories). I want to find into this directory all files names "Log.txt" ( and in each subdirectories). And to grep each of ...
0
votes
0answers
18 views

Recursively create/update tarballs of old files inside directories

I have an archive directory of ftp files. I want to schedule a job to zip up any files that are older than 6mo into an tarball in each directory. I've started writing the script, but I feel like ...
0
votes
1answer
34 views

Search through tar files for a pattern and print the full path of what's found

I have directory tree with many tar files. Each tar file contains many other files. I want to search through all the tar files for a given pattern, and print the full path of any files within a tar ...
1
vote
2answers
68 views

Unhide all .htaccess files on mac

I am trying to unhide all the .htaccess files in my home folder. Below I've pasted what I'm using now, but it isn't working. find ~/ -iname ".htaccess" | xargs chflags nohidden "{}" Anyone knows ...
1
vote
1answer
26 views

Mac command-line sort files into subfolders

I want to run a command on a very large folder to sort every item into subfolders based on modification date. Can this be done with one line? I.e., all files modified in July 2013 would be moved to ...
6
votes
6answers
5k views

find command in Linux to locate pdf files

My goal is to find all pdf files on a remote machine, so I resort to the useful command find. So I type find ~ *.pdf or find ~ "*.pdf" and I get nothing. I do the same on my machine and I get nothing. ...
4
votes
2answers
1k views

Difference between grep -l and find in UNIX

Is there a difference between grep -l and find in UNIX?
3
votes
4answers
364 views

On Linux or Windows, how do I find the path for all mp3s that are the only mp3 in that directory?

I have a Music folder and the contents look like this: Music     -ArtistA ...
8
votes
5answers
8k views

How to list all source files (*.c, *.cpp, *.h)

I'd like to find source files (*.c, *.cpp, *.h) that contain in Linux/MinGW/Cygwin, and recursively in all sub directories. My basic idea is using find and grep. However, building a regular ...
1
vote
2answers
52 views

Is it possible to move last modified files using ls, tail and mv?

I want to move the last 3 modified files from a directory using bash commands. However, I noticed that I can use find in the following way: find . -type f -mtime -0.5 -print -exec mv {} ...
1
vote
0answers
4 views

Go to next matching page in Acrobat

In Acrobat X, if I search for a term using Command-F, I can find each match by pressing enter. Is it possible to go to the next page containing the search term (rather than to the location of the term ...
1
vote
2answers
39 views

how to use tar '--remove-files' option inside find -exec?

I've got a number of very large log files which I want to compress individually so I can't use xargs or pipe stdout to get a huge compressed file. I'm trying to do this: find . -mtime +1 -iname ...
1
vote
2answers
415 views

Prevent rmdir -p from traversing above a certain directory

I hacked together this script to rsync some files over ssh. The --remove-source-files option of rsync seems to remove the files it transfers, which is what I want. However, I also want the directories ...
0
votes
1answer
9 views

Find Executables that link an SO file

I know that I can print out the so files that an exe has linked with ldd. What I want is to go the other way. My current approach is to run something like find / -type f -executable -exec ldd {} \; | ...
19
votes
3answers
12k views
0
votes
2answers
95 views

Why doesn't xargs on find work with a series of commands using pushd and popd to walk a directory subtree?

On a Linux Centos 4 machine, I am trying to create a simple bash command line to walk a directory structure below an arbitrary current directory and in each subdirectory touch a file, list the ...
0
votes
2answers
682 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
vote
0answers
14 views

Find files which are of size of x Bits

I want to find files which have a size of exactly x bits. However, I only know how to find files with size of x Bytes (using the find comment on *nix). How can I specify a size on bit-level?
2
votes
2answers
120 views

Find Files (Strictly) Older than Another File

When I deploy my software, I ship a zipped file to the target server and extract it's contents. In addition to this, at the same time I also place a metadata file in the directory, detailing what was ...
1
vote
3answers
2k views

Using sed to replace text from a list of files from find

Given the following find command: find . | xargs grep 'userTools' -sl How can I use sed on the results of that command? output: ./file1.ext ./file2.ext ./file3.ext
3
votes
3answers
325 views

find command locking the system out

I had a folder , with 4+ million files in it. I managed to delete all files , in course of a week , using "find . -delete" and "kill -9" after a minute as it locks the system otherwise. now the ...
0
votes
2answers
33 views

Move most recently modified file

I am trying to move the most recently modified file in "Pictures/". This is what I've tried: find Pictures/ -maxdepth 1 -type f -mmin -60 -print0|tail -1| xargs -0 -I {} mv "{}" Dropbox/somefolder/ ...
2
votes
2answers
2k views

Bash: Find folders with less than x files

How would I go about finding all the folders in a directory than contain less than x number of .flac files?
0
votes
1answer
44 views

Preserving newline in find/grep search results

I am recursively searching for the occurrence of php scripts being called from other files using the following script. find . -exec grep -Hn $1 {} \; | grep -v ^Binary; Works great! Now, I need ...
-1
votes
2answers
53 views

Unix - Searching for every file with a certain string in it

I am searching for every file within a root directory and want to search every subdirectory as well. I have tried grep -r "message" * but I am not sure that this searches every subdirectory, any ...
3
votes
1answer
678 views

How to find one the latest modified file in directory and subdir?

How to find the latest one modified file by "find" command in directory and subdir ? I need take only one file.
3
votes
2answers
414 views

Linux: find first result from specified search path

If I have a colon-separated path list, much like $PATH, but not neccessarily $PATH. I want to search that list for a specific file name. However, I only want the first matching path. I have ...
1
vote
0answers
43 views

How to find and replace text in embedded excel spreadsheets in word? [closed]

I need to change the values of a series of tables (about 10) embedded in my word doc.
30
votes
6answers
50k views

Bash script to delete files older than x days with subdirectories

I'm trying to delete a ton of files older than x days. Now I have a script to do that find /path/to/files* -mtime +10 -exec rm {} \; But this will also delete the subdirectories. There are a ton ...
4
votes
2answers
247 views

Running find and xargs in background

I want to run this command in background because the process could take a long time. How can I send it to a background process? find /tmp/ -type f -mtime +3 | xargs rm -Rf This does not work: find ...
0
votes
6answers
2k views

A better way to search for a string within a file?

I am trying to find a particular string of text in a file somewhere on my hard drive. The best I have come up with so far is: find -type f / | xargs cat | grep "string to find" But this just tells ...
4
votes
1answer
652 views

How to find a file whose size is less than 10 MB?

I need to find a file in my current directory whose size should be less than or equal to 10 MB. ls -lh gives me the file size of each file but not sure how to find the files whose size are less than ...
1
vote
1answer
32 views

find . file -/+ size except *.filetype

I am looking for a way to do something that can find all files less than size except filenames with an extension or more. May be more than one. find . -type f -size -20M -name /! -name *.mp3 -delete ...
45
votes
4answers
49k views

How can I find files that are bigger/smaller than x bytes?

In a terminal, how can I find files that are bigger or smaller than x bytes? I suppose I can do something like find . -exec ls -l {} \; and then pipe the result to awk to filter by file size. But ...
7
votes
3answers
10k views

Finding files which contain a certain string using find (1) and grep (1)

find . -type f -print -exec cat {} \; | grep some string Command above doesn't print the file path. I'm using: Ubuntu, bash 4.
0
votes
2answers
33 views

How to make a copy of file in the same directory

This creates a file in the same directy as 'some.file.bak'. find /home/ -ipath "*/temp/some.file" -type f -exec cp {} {}.bak \; How to make a copy in another name such as 'another.file' in the ...