Help finding a video faster


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Help finding a video faster
# 1  
Old 04-30-2019
Help finding a video faster

Is there a way to make this search faster? It takes about 30 minutes. Its a video so I figured I could say larger than 100 MB. It contains Mark so I added name. What else could I do to make the search faster?

Code:
find / -type f -name "*Mark*" -size +100M 2>/dev/null

# 2  
Old 04-30-2019
1. Restrict the search to the file system where you think the file is.
2. Reduce the number of files per directory.
# 3  
Old 05-01-2019
Code:
find $(locate "Mark") -type f -size +100M

# 4  
Old 05-01-2019
@nezabudka: nice idea, but non-linux systems might not have the locate service. And, doesn't find need (at least) one starting directory, and a single string per -name test?
This User Gave Thanks to RudiC For This Post:
# 5  
Old 05-01-2019
Code:
find $(locate "Mark") -maxdepth 0 -type f -size +100M

I apologize again for the late fix
Code:
find $(locate -b "Mark") -maxdepth 0 -type f -size +100M


Last edited by nezabudka; 05-01-2019 at 09:29 AM..
# 6  
Old 05-01-2019
As RudiC has pointed out some systems might not have the 'locate' tool and if it does the database needs to be created first.
OSX 10.14.3, default bash terminal...
Code:
Last login: Wed May  1 12:52:45 on ttys000
AMIGA:amiga~> locate -S

WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.

AMIGA:amiga~> _

This User Gave Thanks to wisecracker For This Post:
# 7  
Old 05-01-2019
May be this could be a help, using iname from find command. maxdepth option could be set as or if you want to look in whole file system then remove it. By doing this you are simply telling find command to look to certain levels of directories and DO NOT look for all(in case we have set maxdepth option)

Code:
find /your_file_system/ -type f -iname "*Mark*" -maxdepth 0 -size +100M  2>/dev/null

Thanks,
R. Singh

Last edited by RavinderSingh13; 05-01-2019 at 09:45 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Video Cards :: Video Memory Intercept and Redirect

I need a broad spectrum understanding on this subject, and any help would be greatly appreciated. First of all, as I understand it... The way the video hardware works is the CPU sends information about input and possible changes to the display, the video card receives these changes, makes the... (2 Replies)
Discussion started by: ciNG
2 Replies

2. Linux

USB video capture? composite, s-video, etc

does anybody have any experience with any of these composite video to usb devices on linux? usb video capture - Google Product Search would like to get one but a linux newbie and having trouble figuring out if any are ported... i've found lots of things that link to freedesktop.org DisplayLink... (1 Reply)
Discussion started by: danpaluska
1 Replies

3. Solaris

needed help in finding a suitable video player!

Hi all, I had been using kde 3.5.8 for a while on solaris but the problem was that i was not able to use Gnome for some strange reasons... It constantly used to misbehave. (Whether it was cde-login or gdm) So i had to remove kde completely and now am left with no video or audio players . So i... (11 Replies)
Discussion started by: wrapster
11 Replies
Login or Register to Ask a Question