You are Here:
Download Linux Lite 5.8 RC1 today - See Release Announcements



X Close Ad
X Close Ad
file type/category search?

Author (Read 2619 times)

0 Members and 1 Guest are viewing this topic.

file type/category search?
« on: October 26, 2018, 04:30:32 PM »
 

bigskill

  • New to Forums
  • *
  • 49
    Posts
  • Reputation: 4
  • Linux Lite Member
Is there a search program or file manager that will search for file types/categories?
 IE: video files, audio files image files?
 

Re: file type/category search?
« Reply #1 on: October 26, 2018, 04:36:29 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Hello bigskill,
I use Fsearch, if I type .mp3 it only finds mp3's, but if I type audio it finds anything of any type that has the word audio in its name, such as a folder for a software.
 

Re: file type/category search?
« Reply #2 on: October 26, 2018, 04:53:10 PM »
 

bigskill

  • New to Forums
  • *
  • 49
    Posts
  • Reputation: 4
  • Linux Lite Member
Not  exactly what I mean.
For example I wold like it to search for all audio files IE all mp3, flac, m3u,m4p, midi, ogg etc 
Or all video files or image files
Not files with the audio in the name.
 

Re: file type/category search?
« Reply #3 on: October 26, 2018, 05:28:36 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
This will find all the files with the extensions of .mp3 and .png, (as I don't have any music files other than .mp3 and I don't have any video files, so I used these extensions to test it works),  just extend it as below to include whatever file types you want.

Code: [Select]
find . -type f \( -name "*.mp3" -o -name "*.png" \)
the . after find will make it search in the current working directory, otherwise remove it for a wider search outside the current directory.
« Last Edit: October 26, 2018, 05:33:52 PM by bitsnpcs »
 

Re: file type/category search?
« Reply #4 on: October 26, 2018, 05:50:18 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1665
    Posts
  • Reputation: 274
  • Linux Lite Member

  • Linux Lite: 5.6 64bit

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x

Code: [Select]
find . -type f \( -name "*.mp3" -o -name "*.png" \)


I found the command above ran without the \( .. \ )
Code: [Select]
find . -type f -name "*.mp3" -o -name "*.png" FYI if you want to search root (/) use sudo..


You should be able to use locate as well..
Code: [Select]
locate *.mkv *.webm *.flv *.vob *.ogg *.ogv *.drc *gifv *.mng *.avi$ *.mov Adding/changing the extensions as needed...


Additional / variations
*.mkv *.webm *.flv *.vob *.ogg *.ogv *.drc *gifv *.mng *.avi$ *.mov *.qt *.wmv *.yuv *.rm *.rmvb *.asf *.amv *.mp4$ *.m4v *.mp *.m?v *.svi *.3gp *.flv *.f4v

LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.6 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.6 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

 

X Close Ad
X Close Ad

Download Linux Lite 5.8 RC1 today - See Release Announcements