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

3
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
46 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
79 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?
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 ...
1
vote
1answer
27 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
59 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
59 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
343 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
157 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
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 ...
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 {} \; | ...
0
votes
1answer
62 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
59 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
184 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
24 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
212 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
107 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
232 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
143 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
67 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
47 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
84 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 ...
0
votes
1answer
45 views

find expression not working

I would like to convert all powerpoint type files to pdf using the find -exec and unoconv command. find . -name '*.@(ppt|PPT|pptx|PPTX|pps|PPS|ppsm|PPSM|ppsx|PPSX|pptm|PPTM)' -exec unoconv -v -f pdf ...
0
votes
1answer
139 views

Listing unreadable group files in Unix

Is there a way I can list ordinary files that are unreadable by a group in Unix? What would be the necessary code for that? And can I do it without using the find command?
0
votes
1answer
1k views

Using find with -exec gzip and grep

I have a bunch of zipped up log files and I want to search them all for a string. I tried this but it's not working: find ./ -name "*.log.zip" -exec gzip -dc {} | grep ERROR \; It's giving me: ...
0
votes
1answer
49 views

Use find to search in hidden dirs

Need to collect all git configs, I use find / -type f -name '.gitconfig' But also I need find out all locals 'config' under hidden .git dirs
0
votes
1answer
146 views

linux find command issue

I have a shell script which was written for Mac OSX and now ported to a linux machine. I don't have access to a linux machine currently( I will be setting up a virtual machine soon) Some statements in ...
0
votes
1answer
290 views

Exclude all hidden directories in UNIX find

I'm doing a word search using the following command: find . -exec grep -q [some_word] '{}' \; -print -o -name .svn -prune -o -name .ssh -prune -o -name .boneyard -o -name log -prune -prune -o -name ...
0
votes
1answer
289 views

Auto rename symbolic link

I have a folder which contains many sub-folders which contains many images. I find it tedious to go into each folder to browse the images so I decided to create an empty folder and create symbolic ...
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
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
368 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
204 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
216 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
556 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
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
6 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
0answers
22 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
13 views

Detect symlink errors in installation

It is my understanding that the Linux Filesystem Hierarchy is supposed to be structured like this: /usr/lib/prog-ver - contains the actual installation of prog (e.g., java) version ver (e.g., ...
0
votes
0answers
11 views

remove permission spam for find is not working tcsh enviroment

Hello this question is asked a lot like here: However, my environment on (csh or tcsh) seems to add a space but I can't figure out why. for instance, on bash: find /. -user `whoami` 2>/dev/null ...
0
votes
0answers
41 views

I'm trying to list size of folders plus selected files on a portable disk

For the purpose of finding the location of my data among many portable disks, I'm trying to create plaintext lists of the contents of all folders and files of certain extensions and sort them by size. ...
0
votes
0answers
25 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
15 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
99 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
58 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
72 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
58 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, ...
-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 ...