$ file /etc/passwd
/etc/passwd: ASCII text

$ file -i foo.pdf
foo.pdf: application/pdf

(-i prints MIME type)

file tells you the type of the file in question.

But DON'T trust file. It is only an indication. Sometimes it can go really
wrong.

For audio files like VOX and DSS you have other means to finding
out the playtime of audio files in that format. For reading id3 tags you
have other tools which one of you Luggers can tell others. ;)

Audio::DSS for DSS and sndfile for VOX. For all formats playable by
mplayer like
mp3, wav or whatever you can do:

$ mplayer -ao null -frames 0 -identify foo.mp3

You have to grep for the right lines and convert seconds to minutes if you want.

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to