Get the proper suffix depending on the file type.

Peng Yu pengyu.ut at gmail.com
Wed Jan 4 20:42:57 UTC 2012


Hi,

The command 'file' print human readable file format. But I need to get
the correct suffixes for some files with incorrect suffixes. I could
parse the output of 'file' and then map to the correct suffixes. But
I'm wondering if there is any more automatic way of doing so? Thanks!

-- 
Regards,
Peng




More information about the ubuntu-users mailing list