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
7 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
58 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
3 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
15 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
23 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
27 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
29 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
13 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
10 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
35 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
39 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
36 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
31 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
21 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
28 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
31 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
15 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
23 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
27 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
48 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
83 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
1answer
36 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
72 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
50 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 ...
4
votes
1answer
180 views

Find and delete folder but not content

I'm trying to find all folders named b and delete them, without deleting their content (whether folders, files, hidden files, ...). So for example, a file in a path /a/b/c/file should become ...
0
votes
1answer
23 views

How can I find all files open within a given directory?

I know I can use lsof to list open files, and I know I can use find to find files by inode within a given directory. But how can I effectively combine these two programs to list all open files which ...
0
votes
2answers
88 views

Chronologically grep or zgrep files in folder depending on file extension (xargs)

I have dozens of folders which contains both plain text log files and gzipped older logs. My goal is just a one liner to run (one folder at a time) to pull up all grep results based on timestamp ...
2
votes
1answer
61 views

Linux find command with multiple command -exec using chown and chmod

The following command runs but the two -exec commands don't run - so the file gets moved but the permissions and file owner doesn't change. find ~/Downloads/ -name "2014-12-24*" -exec sudo mv {} ...
1
vote
1answer
25 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, ...
0
votes
1answer
48 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 ...
2
votes
1answer
88 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
vote
1answer
38 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 ...
0
votes
0answers
16 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
14 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
19 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
54 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 ...
3
votes
2answers
373 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 ...
1
vote
1answer
55 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 ...
1
vote
0answers
5 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 ...
3
votes
4answers
400 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 ...
0
votes
1answer
12 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 {} \; | ...
1
vote
2answers
53 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
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?
0
votes
2answers
45 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/ ...
3
votes
3answers
328 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
1answer
169 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
vote
0answers
87 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.
1
vote
2answers
30 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 ...
0
votes
2answers
49 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 ...