From: "Aleksander N.Gorohovski" <angel@feht.dgtu.donetsk.ua> To: "community@altlinux.ru" <community@altlinux.ru> Subject: [Comm] text | binary Date: Sun, 05 Nov 2006 15:55:25 +0200 Message-ID: <op.tijqanffmb8vzs@oc.peooc.net> (raw) Доброго времени суток сообщество! Не подскажите есть ли более менее надёжный способ определить является ли файл текстовым (например, типа tex) или двоичным (картинки, скомпилированный код ...). Попробовал на Perl с помощью операторов тестирования файлов -T -B но они что-то не коректно работают (и не понятен алгоритм по каким признакам они это делают) Спасибо.
next reply other threads:[~2006-11-05 13:55 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-11-05 13:55 Aleksander N.Gorohovski [this message] 2006-11-05 16:22 ` Chernetsky Andrey 2006-11-05 16:01 ` Aleksander N.Gorohovski 2006-11-05 19:07 ` Michael Shigorin 2006-11-05 17:48 ` Aleksander N.Gorohovski 2006-11-05 19:53 ` Michael Shigorin 2006-11-05 18:25 ` Aleksander N.Gorohovski
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=op.tijqanffmb8vzs@oc.peooc.net \ --to=angel@feht.dgtu.donetsk.ua \ --cc=community@altlinux.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git