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

How do I set search option defaults in MS Excel 2007?

I'm using Excel 2007. Every time I do a search I have to set the options to search within 'Workbook' and look in 'Values'. Is there a way to permanently set the default search behaviour?
2
votes
1answer
51 views

find using regexp and echo matches

I have about 50 users in /home/ directory and I have cloned a git repository to everyone: Executed at /home/ as root user: find . -maxdepth 1 -type d ! -name . -prune -exec git clone ...
2
votes
1answer
94 views

Using inode number to locate hardlinks

How can I use the inode number to locate all hardlinks to the file "file.txt" in my home directory?
1
vote
1answer
81 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
1answer
80 views

Find word that has more than 50 characters in all php files

I am trying to use find in combination with grep to find all the php files in my web server which have a word (any sequence of characters except whitespace) with more than 50 characters. I have this ...
1
vote
1answer
67 views

Combining two linux commands

Im trying to use mergecap to merge 15 old pcap files in a folder. I tried to use FILES=($(find /mnt/md0/capture/DCN/ -maxdepth 1 -type f -name "*.pcap" -print0 | xargs -0 ls -lt | tail -15 | awk ...
1
vote
1answer
428 views

find files with spaces modified in last 60 days and tar.gz in files no bigger then 4gb with date

I maintain a file server. I need to backup files that have changed in a period of time. First i compressed up everything to 4gb files and backed up to dvd. But 7z that I was using 7z a -t7z ...
1
vote
1answer
162 views

Find symbolic links

I'm awared that find -L or find -type l would find all symbolic links on a given path. But I'm trying to find all symbolic links that points to my foo folder. Any tips?
1
vote
1answer
379 views

How to exclude the hidden directory from the result of find command

I am searching for some directories in find command and if that directory is present then I need to take some action on it. But what is happening is: At some places though the main directories (for ...
0
votes
1answer
12 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
29 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
21 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 ...
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
1answer
58 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
1answer
79 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 ...
0
votes
1answer
17 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 {} \; | ...
0
votes
1answer
63 views

searching large number of possible file names in large directory tree

I need to search a large directory tree for a large number of possible file names, i.e. I have an input file with a long list of strings that I need to find in the tree (or as below: print all those ...
0
votes
1answer
83 views

how to find all files under directory different directories

How can you find files name 'xyz' under directories name 'abc'? something like this....but its not working. find . -type d -name 'abc' -exec find {} -type f -name 'xyz' \; find . -not -path 'abc' ...
0
votes
1answer
350 views

Using batch to verify a process is running with WMIC

I am attempting to write a script that will check if a process is running (in my case a virtual machine) @echo off wmic process where name="VirtualBox.exe" | find "GitHubEnterprise" /c > tmpcount ...
0
votes
1answer
27 views

How do I extract multiple files at once?

I have a number of rar files stored like so: /torrents/televisionshowS01E0$X/nameoftelevisionshow.rar where $X is a variable ={0,1,2,...,12} I would like to extract them using a single command to ...
0
votes
1answer
423 views

Find & du to calculate total size vs xargs

Can someone confirm that the following one liner will produce the total human readable size of all the directories which FIND locates as having log in the name? find -type d -name *log* | du -hcs
0
votes
1answer
144 views

Find and delete line in .htaccess file

I am trying to figure out how could possible a command do search and delete line from .htaccess file . the following line is the line i want to search and delete RedirectMatch ...
0
votes
1answer
338 views

How to find special characters in Linux Vim

I want to find special characters in a text file. It is known that the UTF-8 encoded file contains Chinese characters , "-", "^A"(control-A, which is one of special characters), numbers, ...
0
votes
1answer
268 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 ...
0
votes
1answer
75 views

linux find regex - can I use 'search', instead of match?

the find utility is powerful, but I'd need some additional features. its -regex search treats each filename (or dirname) as a string and applys given regex only at the beginning of name. like ...
0
votes
1answer
48 views

SSH private Keys

I want to use a simple command to count the number of ssh keys in a users home folder, but would rather use the output from the /etc/passwd file as input. The find command is easy: find ...
0
votes
1answer
96 views

How to use arguments with 'find -exec'?

I'm trying to generate static html files for all php scripts inside dir: find . -name "*.php" -exec php {} > {}.html \; But it just dumps all results to {}.html. How to do it properly? And how ...
1
vote
0answers
15 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
0answers
15 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
0answers
27 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 ...
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 ...
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?
1
vote
0answers
469 views

find command with exec sh doesn't work in shell script but in commandline (raspberrypi)

I want to find "old" folders in /volume1/photo/ipcam which are named like "????-??-??" and move corresponding folders within dropbox (with the same directory structure /ipcam/...) to the subfolder ...
1
vote
0answers
355 views

Linux: Trying to find files from a list recursively and copy them somewhere else

I'm trying to find files from a list and copy them to another place. So I started my test loop like that: # cat ~/my_filelist.txt | while read file ; do echo "$file" ; done After I hit enter all ...
1
vote
0answers
286 views

Search From a List of Multiple Entries using CTRL+F

I have many documents that I am viewing using Google Chrome and I am searching the PDF document for a word1. If word1 doesn't show up, I search for word2. If word2 doesn't show up, I search for word3. ...
1
vote
0answers
683 views

Find vs Findstr results

Per this answer I was attempting to use findstr to locate a string (a name) inside some HL7 log files in a directory. Findstr was getting 0 results, but Find returned plenty. I played around with ...
0
votes
0answers
13 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 ...
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 ...
0
votes
0answers
72 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
0answers
45 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
0answers
22 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
16 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
22 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
0answers
26 views

List of subdirectories that contains a particular file name

I am wondering if i can do this in a single shell command. I am in home directory and want to find a list of subdirectories that contains a particular file. The file name and the depth is always ...
0
votes
0answers
32 views

Finding files that are mostly NUL

I've got a hard drive copy that went bad where many files are of correct size but are completely filled with NUL (0x00) bytes. However, a couple of the files seem to have a couple KB of actual data. ...
0
votes
0answers
17 views

How to use find with -delete when looking for directories

I know I can do find . -name '*.pyc' -delete But when I'm loooking for specific directories, -delete fails reporting that directories are not empty. Is it possible to force find to delete non ...
0
votes
0answers
157 views

Find files based on content and sender, receiver and based on date range provided

I would like to find files based on content and sender, receiver based date range provided More details below: Find files between date range (where folder names are the dates in the format yyyyMMdd) ...
0
votes
0answers
60 views

How can i keep and remove some charecters from specific line notepad++

i have about 1000 of 80000 rows that looks like these lines and with different disposition ...
0
votes
0answers
83 views

Find match in Excel 2010 from 2 sheets & copy corresponding contents from sheet 2 to sheet 1

I have 2 worksheets: Worksheet 1 with Column H need to find a match on Worksheet 2 with Column F If a match is found, I need to copy the contents of worksheet 2 column g to worksheet 1 column E. ...
0
votes
0answers
59 views

Why does a directory appear when viewing the home folder but not when I use the command line in Linux?

It's an odd problem in that when I browse the home folder I see the directory 'Jquery' however when I use the command line nothing appears. I have used the commands ls | less, find . -iname jQuery, ...