You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



file type/category search?

Author (Read 4157 times)

0 Members and 1 Guest are viewing this topic.

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

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • 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.8 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.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

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

bitsnpcs

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

  • 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 #3 on: October 26, 2018, 04:53:10 PM »
 

bigskill

  • New to Forums
  • *
  • 49
    Posts
  • Reputation: 5
  • Linux Lite Member
    • View Profile
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 #2 on: October 26, 2018, 04:36:29 PM »
 

bitsnpcs

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

  • 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.
 

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

bigskill

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

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section