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

find -exec where filename is not the last parameter

I am trying to pass the files from find command to adb push like this: find . -name "test0[4-8]*.py" -exec adb push {} \; /storage/emulated/0/ I get an error find: paths must precede ...
-1
votes
1answer
14 views

MS Excel 2010 Identify peaks in a data set, select its previous values and get a chart

I have a set of data about with approximatively 25500 cells, all contained in one column. The data has a series of peaks that occurs, and I need to identify the 2nd peak (and the 4th, the 6th, and so ...
1
vote
2answers
56 views

find and exec on only filename

I need to find all files older than X days and delete them locally and from my s3 bucket. The problem is the find command returns me the full path and filename too. I tried messing with basename and ...
2
votes
1answer
34 views

Differences between how the find command interprets units of size

When I issue find / \( -type f -size +10M \) -and \( -type f -size -1G \) I don't get any results. However, when I type find / \( -type f -size +10M \) -and \( -type f -size -1000M \) the ...
1
vote
3answers
38 views

Find first string in text string that is numbers only. Formulas only

Is it possible to find the first string within a string that contains only numbers/digits? I have a few thousand addresses to process and some of them have Apartment numbers. I need to find the ...
0
votes
1answer
13 views

Using an array as search criterea for find command

I'm wondering if it's possible to declare an array of file types to then be searched with via the find command? So fileTypes=(*.omf *.jpeg *.xml *.otf) find . -name ${fileTypes} Instead of: find ...
0
votes
0answers
11 views

Dreamweaver REGEX trying to find and replace (or remove)

So far am using this: "http([^>]+) as my REGEX. The page has multiple urls mixed with text and DOM Elements. Something like: <li><a href="http://www.uen.org/toolbox">UEN's Teacher ...
0
votes
1answer
30 views

#value error using FIND

I am trying to create a formula that will pick up the value in a cell from the beginning up to immediately before the ".". e.g. Cell A2 is 1440.00. In cell B2 my formula is ...
0
votes
2answers
44 views

about an example in Linux find man page

The following example in Linux find man page doesn't seem to work: find repo/ -exec test -d {}/.svn \; -or \ -exec test -d {}/.git \; -or -exec test -d {}/CVS \; \ -print -prune Given ...
1
vote
1answer
34 views

Replace multiple files recursively

I have a file structure like this: experiment/ ├── foo.txt ├── source-foo.txt └── subdir └── foo.txt I want to take the file source-foo.txt and replace the other foos with it. Just like doing ...
1
vote
1answer
26 views

Delete files with only 1 hardlink? (ubuntu)

I have a large amount of hardlinks for my MythTV recordings into another directory organized specifically for Plex. As it is now, if I delete a recording in MythTV it would still have a hardlink in ...
0
votes
3answers
30 views

How to tell what files are different on two servers

here we can see that md5sums of this two directories are different, how to tell if the folder structures or some certain files are the reason of this difference? [skynet]~> ssh evn-web04 'find ...
0
votes
0answers
21 views

How to work around the impossibility to find zero or more occurrencies in Microsoft Word?

How would you proceed about the following find and replace in Microsoft Word? Find what? D.Lgs. (that can be any combination of lower or upper case, plus the dots may or may not be there, i.e. I ...
0
votes
1answer
21 views

Tar Archive All Files with Extension

I'm using this command to archive all PHP files: find -name "*.php" | sudo tar -zcpvf my-archive.tar.gz -T - It works great, except that the output is like this: ./file1.php ./file2.php ...
0
votes
1answer
34 views

A Windows application : Show live output of results(stdout?) of prespecified command

I am looking for a application that works in the following manner : The application shows/has an input area/box. And it runs a pre-specified command/application (using the input as paramas) and ...
0
votes
0answers
45 views

Copy files and replace a directory

I have the following file structure that comes out of my continuous integration tool: stage/acme-plugin/target/acme-plugin-1.0.0.jar stage/example-plugin/target/example-plugin-2.5.0.jar but what I ...
0
votes
1answer
12 views

How to exclude directories in find OUTPUT

This is surprisingly hard to search for because all results are for excluding directories in the search. I just want to exclude directories from the output. For instance: >find ./ -size +0 ...
0
votes
1answer
17 views

How to disable “Permission denied” output when using find

I'm running a script to find some file on a server: find / -group usergroup -user jondoe -size 33c Now my problem is, what is the most convenient way to only display the real results? In my output, ...
1
vote
1answer
40 views

Working with LFTP, find and -exec option throws error

What is wrong with the following lftp command? There files on server. I am trying to get their names without any path in it (like ./) Just file names. lftp -u user,password -e 'find -exec basename {} ...
0
votes
0answers
28 views

Why isn't find excluding files with the given regex?

I'm trying to find all files under /mnt/Storage not under /mnt/Storage/.Snapshots. The following works: find /mnt/Storage | egrep -v "^/mnt/Storage/\.Snapshots" But the following does not: find ...
0
votes
1answer
38 views

Linux: How does file modification time affect directory modification time and directory access time?

I would like to learn more about how file access time and file modification time related to directory access and modification times. I did read the "questions allowed here" but if there is a better ...
2
votes
2answers
56 views

Unix find not working with a wildcard in the path when ssh'ing

This command with a * in the find path works fine on the local server Svr1$ find /path/*/foo/ -name "*20160208" When I try this remotely from another server it doesn't work Svr2$ ssh Svr1 find ...
1
vote
2answers
41 views

Using wildcard in unix find command's path

This command with a * in the find path works fine on the local server Svr1$ find /path/*/foo/ -name "*20160208" When I try this remotely from another server it doesn't work Svr2$ echo $Pswd|ssh ...
9
votes
2answers
229 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
20 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 ...
3
votes
1answer
60 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
28 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
24 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
16 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
50 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
59 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
41 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
41 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
16 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 ...
0
votes
1answer
42 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
86 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
44 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
26 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
27 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
56 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
798 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
27 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
30 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
165 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
50 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
1answer
51 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 ...
0
votes
0answers
13 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
56 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
18 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: ...