Skip to main content

All Questions

Tagged with
4 votes
2 answers
478 views

Use Find to list files and include counter value in output

For performance reasons, I want to use find to list a large number of files, but also include a counter on each line. The following is what I have so far: local root_dir="." local ...
Peter Grill's user avatar
  • 1,653
1 vote
1 answer
121 views

OSX: How to make GNU Find the default find inside scripts?

So I installed GNU find via homebrew. I then created an alias called "find" and pointed it to GNU find. ~ ➜ alias | grep find find=/usr/local/bin/gfind tree='find . -print | sed -e '\''s;[^/]*/;|...
mrjayviper's user avatar
  • 2,223
1 vote
2 answers
112 views

Using Linux Find

I'd like to find the MAIN.TXT file in a directory folder. If it is older than 24hours then output YES to the MAIN.txt file. If it hasn't been modified in 24hours then leave the file alone. I got as ...
DizzyNYC's user avatar
1 vote
1 answer
252 views

Substitute with `...` multiline output of find command [duplicate]

I need to substitute output of find command to another command to process every found file, e.g.: mdls `find ~/target_dir/ -iname '*some*' -depth 1` (mdls is a command in OS X which get metadata ...
shau-kote's user avatar
  • 622
3 votes
2 answers
2k views

Forensic analysis: find all files modified around a known one

An installer which isn't really clean (Adobe Acrobat Reader DC) installed on my Unix (Mac OS X) a lot of files in different places. I have a reference file Application which I am pretty sure was ...
athena's user avatar
  • 1,085
4 votes
3 answers
499 views

Best way to work through / display a tree of images sorted by size

I've got a deep directory tree containing .PNG files. I'd like to find all the .PNG files in the directory, sort them in order of size from smallest to largest, and then display every 50th image. (I'...
radven's user avatar
  • 143