I am looking for a command line tool where I can pipe in a list of files and then pipe out a list of files from one MIME type. E.G.
|
Source code
|
1
|
ls | MIMEfilter image/jpeg | more
|
prints a list of all jpeg's in the current folder (yes I know you can use ls *.jpeg but firstly this is just an example and secodnly that won't catch files with the wrong extension)
Also the program will need to use KDE's list of MIME types.