10-26-2018, 08:30 PM
10-26-2018, 08:36 PM
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.
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.
10-26-2018, 08:53 PM
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.
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.
10-26-2018, 09:28 PM
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.
the . after find will make it search in the current working directory, otherwise remove it for a wider search outside the current directory.
Code:
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.
10-26-2018, 09:50 PM
(10-26-2018, 09:28 PM)bitsnpcs link Wrote:Code:find . -type f \( -name "*.mp3" -o -name "*.png" \)
I found the command above ran without the \( .. \ )
Code:
find . -type f -name "*.mp3" -o -name "*.png"
You should be able to use locate as well..
Code:
locate *.mkv *.webm *.flv *.vob *.ogg *.ogv *.drc *gifv *.mng *.avi$ *.mov
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