LINUX.ORG.RU

дериктории

Безграмотный неосилятор, да?

man file

-i, --mime

Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it may say “text/plain charset=us-ascii” rather than “ASCII text”.
In order for this option to work, file changes the way it handles files recognized by the command itself (such as many of the text file types, directories etc), and makes use of an alternative “magic” file. (See “FILES” section, below).

$ file -i ./* | grep image\/
./P1020672.JPG:                                                           image/jpeg
./P1020676.JPG:                                                           image/jpeg
./P1020678.JPG:                                                           image/jpeg
./cherkasenko=kazka_starogo_mlina.djvu:                                   image/vnd.djvu
adriano32 ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.