LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-21-2006, 03:18 PM   #1
Tortanick
Member
 
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Rep: Reputation: 30
Is there a KDE MIME filter?


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.

Code:
 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.

Last edited by Tortanick; 11-21-2006 at 03:20 PM.
 
Old 11-21-2006, 05:28 PM   #2
rednuht
Member
 
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 31
sounds like something you could write in a Bash script using
file

just compare the output from file
file some.jpg
and return the file name if it matches
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
easy color changing in ksirc 1.3.11 using KDE 3.3.2 (filter rule editor/perl script?) SilverDrake Linux - Software 0 05-10-2006 09:14 PM
KDE error 'Could not find mime type application/octet-stream' true_atlantis Linux - Software 0 01-04-2006 07:29 PM
x.org and kde mime? help ZeroKun Linux - Software 1 03-31-2005 11:08 AM
KDE programs - mime errror Veteq Linux - Software 0 11-14-2004 08:48 PM
Spam filter to external mail filter deadlock Linux - Software 1 06-16-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration