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
2answers
76 views

Windows 7 - Find all files that are alone in a folder

I need to find a way to select all files that are alone in their folders, so I can cut and paste them someplace else. All respective folders are inside one main root folder. Is there a command prompt, ...
1
vote
1answer
17 views

Looping through wildcard folders and executing multiple commands in Bash

I have a set of commands to change the contents of files called MenuSettings which work fine when directed to a folder. cd /Applications/snowflake/table-updater/Testing/Applications/Salford_100 sed ...
4
votes
1answer
41 views

Is it possible to suspend/restart a 'find' command?

Let's say I have a slow filesystem in which I would like to list all the files: find . -type f -printf "%p\n" Is it possible to launch this command in a way I can interrupt it, save the state and ...
0
votes
1answer
23 views

Quote a command for `find -execdir test [command]` (Bash)

I would like to execute following command to do git fetch in git repos if the have a remote (= git remote is non-empty): find -name .git -execdir test $(git remote) \; -execdir git fetch ...
0
votes
3answers
21 views

Use of the “OR” Regex operator with the find command

There are so many of these questions on the net, but I was unable to solve this simple problem. I have a directory with a lot of images, but I only want to copy a subset of them identified by ranges ...
0
votes
1answer
10 views

is it possible to search case insensitive search using command line [windows 7]

I use grep -f d.txt OB.txt > r.txt to get the result file. But the search is case sensitive. Is there any case insensitive alternative to this?
0
votes
1answer
29 views

windows 8 find files modified in last hour

In windows 8 I am trying to find files modified in the last hour. After reading these two links I thought I could do this. System.DateModified:YYYY-MM-DDThh:mm:ss So I tried ...
0
votes
1answer
40 views

How do I find directories with a question mark in the name? Escaping not working?

I am try to find directories like services-client?.git using the command find . -name *\?.git but get all directories ending in .git What I'm doing is downloading a file from amazon s3 and in ...
0
votes
1answer
29 views

Delete files if condition is met

I have the following directory tree: /Directories/ /Directories/somedir/somefile.mkv /Directories/somefile.rar I'm trying to find a way to delete the .rar file if the .mkv file exists and is larger ...
2
votes
2answers
29 views

compare and calculate two variables with multiple values in shell script

I have written three hive queries in shell script for calculating debit-credit and target amounts which output below values: debit_amount : BOI 4760545.650000 AXIS 284.49000000 SBI 87.220000000 ...
0
votes
0answers
10 views

Firefox Make a noise or do not scroll when using the find bar

I don't remember when (pr what versions) the Firefox behavior changed, but I believe that there used to be a sound played when searching for a term and you reached the end of the page (either top or ...
1
vote
0answers
28 views

How to find files modified in last 24 hr but do not find from hidden directories and sum them

I have following command to find files modified in last 24 hr and sum all of them. #!/bin/bash find /mnt/naspath -mtime 0 -print0 | du --files0-from=- -hc | tail -n1 >> /tmp/size.log exit 0 ...
3
votes
2answers
73 views

find command and support for media metadata

I have a folder with tons of disorganized files of all types with deep levels of subfolders and I want to find every audio file WITH 320kpbs (bitrate) and run something upon each of them without ...
0
votes
0answers
27 views

Find “mystring” in files and return only certain portion of matching lines

I have below command to list out every file in current directory and it's sub-directories containing "mystring" along with the line where search string match is found. @echo off setlocal findstr /s ...
-2
votes
1answer
22 views

How to find files within a size range?

Please suggest me the way to find all the zip files which are more than 60 MB but less than 70 MB in size using find command.
0
votes
1answer
23 views

Excel FIND.VERT with partial text in a keyword table

I need a particular function and I think that it doesn't exists in standard Excel and probably I need a custom VBA function. This function should do something like FIND.VERT but with particlular ...
2
votes
1answer
32 views

Recursively md5 files compared to stored .md5 file

What is the best way to MD5 3200 files in 167 directories using md5sum where all hashes are compared to a .md5 file that is already created in each directory holding the files to be check summed. I ...
2
votes
4answers
547 views

Find | grep doesn't work in Cygwin

I have cygwin installed and when I search for the source code with this command nothing show up, even that I have that string in a file $ echo foo > bar $ find . -name '*' | grep foo Nothing ...
1
vote
1answer
25 views

Unix find -size -1G ignore files which were returned by find -size -900M?

I need to tar-gzip files below a certain size in a directory. I tried the command suggested from this post and it works, but when I changed the argument for find -size to -1G, it ignores some files ...
-1
votes
1answer
26 views

Linux find files that differ from a given date

i would like to search for file that has not a give date. for example i want to find in my server all file created before 2015-12-01 o after any suggestion ? thanks luca refer also to Command to ...
0
votes
1answer
39 views

Find repeated numbered files

I have a bunch of files with names like this file_1_v4_sdk.x file_2_v1_3kl.x file_3_v1_39f.x file_3_v2_df0.x file_4_v4_f33.x file_4_v1_fks.x file_4_v5_skd.x file_5_v2_9ks.x file_6_v4_911.x ...
1
vote
1answer
62 views

How to find and replace line(s) in multiple files using Notepad++?

I have been messing with notepad++ for a bit now and am confused as to how to go about doing this: I have a line in multiple files (Within a root directory) that I am searching for. Example: ...
1
vote
2answers
49 views

How to purge all tabs for spaces in all C files in a directory?

I'm trying to fix the style in a directory of about 60 .c and .h files. This can be taken in steps (e.g. I don't have to figure out find and vim script syntax at the same time), but ultimately I want ...
1
vote
0answers
41 views

find command outputs nothing

Recently, find command behavior is strange. [root@luna ~]# find / -name \*.sh -print [root@luna ~]# find / -name \*.sh -print /home/data/tools/rd/RDService/scripts/createZipArchive.sh ...
1
vote
0answers
9 views

Find all files that occupy the sector range on NTFS

How can all files that occupy the sector range (not particular sector) be found on NTFS? The solution I'm using now is to process the sectors in batch with Micrisoft nfi. And it doesn't suit me, the ...
0
votes
2answers
44 views

remove pattern with random numbers (digits) from php files

I am trying to remove or replace the digits ((random numbers)) in big numbers of php files using find & xargs and grep with sed etc .. the numbers looks like that inside the php file ...
0
votes
1answer
16 views

Discrepancy finding and counting all files on the system

I have been researching the different methods of counting up all files on my system. In my case, I want all the files starting at / and going into subfolders. Here is what I have come up with so far: ...
15
votes
4answers
1k views

Difference between '{}' and {} in find command?

In the documentation, I see usage both ways: find . -type f -exec file '{}' \; find repo/ -exec test -d {}/.svn -o -d {}/.git -o -d {}/CVS ; \
1
vote
1answer
17 views

remove wayback toolbar code in bewteen lines

I am trying to remove Wayback toolbar code using some tools such as find & xargs and grep with sed etc issue that the size of the html & php files it's over 7GB & as well as the pages ...
0
votes
1answer
69 views

how to move files that contain string using find, xargs, grep, in linux

i have many php files maybe over Three million.. how can i use grep with xargs and find with mv to find contain the string in files and move them to directory if they match. I try like that find . ...
1
vote
1answer
20 views

Different behaviour of the find (parameter not correct) on *nix and windows (ming32) systems

This command called from the Makefile works ok on the various *nix systems, but fails with Windows + Mingw32 bash/makefile: for a in `find libr | grep -e dll$$`; do cp $$a ${WINDIST} ; done This is ...
0
votes
0answers
13 views

Filter permissions ls by directories normal users don't have read/execute access

I want to generate a list of directories within usr/bin/ that normal users don't have read/execute access to. I know I can use the 'find' command but don't know how to make it work to display what I ...
0
votes
1answer
37 views

Why the find cmd is not working inside /sys/class?

I was looking for this file: /sys/class/backlight/intel_backlight/brightness So I tried searching for it using this cmd: sudo find /sys -name "brightness" But it doesn't find it. I can go in the ...
0
votes
2answers
339 views

“FIND: Parameter format not correct” and “FINDSTR: Write error” with Pipes

I'm trying to write a Windows cmd.exe script to count the occurrences of aes after compiling a program from the command line. Its simply an Audit/QA script to ensure we're getting what we expect. ...
0
votes
2answers
34 views

Powershell to find value and create file

I am new to powershell, was hoping for some help. I am looking for a powershell command that will search through a file and find a string and create a file based on that string value that is found. ...
1
vote
3answers
61 views

Renaming files fetched via “wget --mirror” in Bash before uploading to an Amazon S3 statically hosted area

I’m trying to archive and upload an old website to statically hosted Amazon S3 area. I was able to get the contents with wget, using the following command: wget --mirror --no-parent --html-extension ...
1
vote
1answer
79 views

Mass Find and Replace - Microsoft Word 2013

I am trying to create a macro in order to do a mass find and replace across multiple word documents. I have found this one on the net and altered it however I keep getting a run time error (5174) ...
4
votes
2answers
386 views

Windows 10: Cortana Search is not finding portable applications

This question deals with finding applications in general but not portable ones: Cortana Search is not finding applications on Windows 10 I have a portable application located but not installed at ...
2
votes
1answer
51 views

How to remove files using find's multiple -name parameter?

How to remove files, containing tilde in the filename or extension, recursively? For example, files of the vim, with the names like .my_file.c.un~? I'm using this find sequence for that: find . ...
1
vote
1answer
21 views

How to use the find command such that it matches from the innermost directory?

Say that I have the following file this/is/my/file.txt Can I search this file given that I only know the file is in /my/ directory ?
2
votes
1answer
23 views

Regular Expression notepad++ deleate comments in ( )

I am currently working with notepad++ and would like to deleate text between brackets togeather with the brackets themselves! I would like to use a regular expression. Example: (thisIsAnExample) ...
1
vote
1answer
23 views

Pruning the Find command

I have the following command I run to grab all users in /Users minus any admin account, guest, shared or beginning with a "." find /Users -type d -maxdepth 1 -mindepth 1 ! -name admin ! -name Shared ...
4
votes
1answer
358 views

understanding some flags in find-command in linux

I wanted to move only files in Linux and I found the answer here as the following: find . -maxdepth 1 -type f -exec mv {} destination_path \; which worked for me perfectly. But my questions are: ...
-1
votes
2answers
66 views

linux find command to keep only .h files

I have a source tree have lots files with different file types. The source tree has many sub folders. How do i keep the folder structure of the source tree and delete all files besides .h files?
4
votes
4answers
45 views

Strange “find” behavior in linux

Why in Linux(Debian 8) touch 1.cpp 1.h find . -name "*.cpp" -o -name "*.h" -exec echo {} \; outputs only 1.h while find . -name "*.cpp" -o -name "*.h" outputs both? Is it a bug or feature?
0
votes
2answers
24 views

confuse about find - print and prune option (unix)

compa> find . -type d . ./2015_08_30 ./2015_08_25 ./2015_08_27 ./2015_08_31 ./2015_08_24 ./2015_08_26 compa> find . -type d -print . ./2015_08_30 ./2015_08_25 ./2015_08_27 ./2015_08_31 ...
0
votes
1answer
31 views

Copy matches of recursive search to a new location

I want to search a directory recursively and copy all XML files to a new location. I can identify the files with: ls -R | grep .xml$ or with full paths with: find . -name \*.xml Results of ...
1
vote
2answers
45 views

Is there a way to give focus to Chrome search result?

It is well known that one can use Ctrl+F to find textual content in the webpage, but after I found what I need, is there a way to give focus to the search result, so that if the result is a link or a ...
0
votes
1answer
69 views

copy files to other folder - find

I have to copy files to folder with name with their type using command 'find'. There are a lot of files with a lot of folders. I tried command: find ./find -type f -exec bash -c ' file -b "$1"|cut -d ...
2
votes
1answer
181 views

Delete all not jpeg files

I have exercise, in which I have to delete all files, which are not jpeg. I tried find -type f |xargs file| grep -iv 'jpeg', but it doesn't work.