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

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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 {} \; | ...
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
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
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/ ...
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
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
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.
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 ...
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 ...
0
votes
1answer
36 views

How to copy a list files to a list of directories or subdirectories

I'm trying to figure out how to copy a list of files to a list of subdirectories. eg. I have 300 files to copy into 300 subdirectories - 1 to 1. file1 -> dir1/sub file2 -> dir2/sub file3 ...
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
3answers
44 views

How to list file names on Windows as the Unix find command?

I'm looking for an equivalent command line on Windows to the following Unix command: find test -name '*.txt' -print This command lists every filename which is in the 'test' folder and subfolders, ...
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
1answer
34 views

How to delete broken symbolic links

I have a case where a lot of symbolic links remain after the original file was deleted. It was the result after leaving a Jenkins installation saving all build logs until the number of available ...
0
votes
2answers
32 views

Passing multiple files with whitespace to python script

I have to convert a lot of .ai files to .svg, and I've found ai2svg tool. I've tried for i in `find ./ -type f -name \*.ai`; do python ai2svg.py "$i"; done But I get errors like IOError: [Errno ...
0
votes
2answers
30 views

linux: how to show permission of files (like ls -l) does on files returned by the find command

I am doing a find command to show me the files of a specific extension, like: find $directory -type f -name "*.vm" however I would like to be able to see the file permissions as well (like ls -l ...
1
vote
1answer
37 views

Why the blackslash dot (\.) in the prefix of the path?

I was running the find command looking for some config files and this is exactly what it outputted: ./log4j.xml ./log4j2-test.xml ./proxyserver/src/main/resources/log4j.xml ...
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
0answers
22 views

Finding all files modified more than 60 minutes ago [duplicate]

I am struggling a little with find . I need all the files that where modified more than 60 minutes ago. As far is understood from all the sources find . -mmin +60 should give me the desired result. ...
1
vote
4answers
99 views

How to get first line of output from command line?

I'm running a find command that's returning multiple results, but I only need the first result. A bit of googling led me to the "read" command, but I couldn't figure it out, and the man page didn't ...
1
vote
2answers
83 views

What does \; mean in a script?

What does \; mean in the following command? I’m also not sure what {} means. Is \; really necessary? find ./ -name file_1 -exec cp {} ./ \;
0
votes
1answer
58 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' ...
2
votes
1answer
28 views

Find not expanding variable

I tried the following and it didn't work one bit. image=.jpg,.png,.gif find . -type f -iname "*$image" Why? Does find not expand variables?
0
votes
1answer
50 views

How to get the time information of the files after find | grep keyword command?

Now I know how to use find | grep keyword to get the file I want. But after that, how should I know the size, create_time info of each file I found? For example, after find | grep tutorial, I got ...
0
votes
2answers
24 views

How to execute files which are found by find

I have some executable files under a directory tree. I want to find them and execute them the most simple way. I've tried this so far: find . -perm 0775 -type f | xargs exec But exec is not an ...
0
votes
2answers
90 views

Windows DOS Command for Finding folder name with specific characters & select it

Trying to write batch file code for copying contents of a folder with path "C:\ABC" to another folder whose exact name is unknown ( its a Profile data folder of firefox) Profiles of Firefox are ...
1
vote
2answers
517 views

Permission denied when attempting to mv (sudo su userName)

I am currently working on a backup script to log into my production server and pull the latest SQL dumps to my staging server. I have no issue pulling the SQL dumps but I do have an issue with moving ...
2
votes
3answers
188 views

In windows, is there a way to count the amount of times a string appears in a file

I am currently trying to write a batch script and at this point, I need to find a string, "null", and determine how many times it is shown in the file. I'm downloading an API from a website ...
1
vote
1answer
185 views

Use 'find' command to search for PNG files, pipe output to imagemagick for batch conversion

I've got a directory with thousands of image files, mostly JPG but some PNG. The files have no extension, they're just numbered. I need to convert all of them to JPG. Using find I can get a list of ...
0
votes
1answer
183 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
84 views

How to capture diff output from find command exec?

I am using Ubuntu (Precise 12.04) I am trying to write some bash script to see if file is changed via awk replace by using diff command. I did a test with the following: #! /bin/bash diff fileA.htm ...
1
vote
4answers
119 views

Linux remove files without giving error

I have this running as cron job /usr/bin/find /backups/* -mtime +5 -exec rm -rf {} \; But it gives me this error on email /usr/bin/find: `/backups/Jun-20-2014': No such file or directory Is ...
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., ...
1
vote
1answer
61 views

Script bash delete older files on directories with special chracters

I use a script for delete older files on Trash or directories type Junk, or similar. It works fine except when it has special characters or spaces in the names ...
0
votes
2answers
42 views

find: show directories which contain certain subdirectories

I have a list of directories /u2/tip/coy/inter/fcs/ /u2/tip/coy/inter/fcs/devel /u2/tip/coy/inter/fcs/ecom_flink /u2/tip/coy/inter/fcs/totalstable /u2/tip/coy/inter/fcs/develbi ...
1
vote
2answers
143 views

How do you search for a phrase on a page in Chrome? (Not a string match)

I'm using Chrome on a Mac, and want to be able to easily search for a phrase on a page, not an exact string match. For instance, on this page: ...