Difficulty: ★ ★ ☆ ☆
The file utility in Linux quickly identifies known file types. It identifies text files, graphics images, or other common file types by using some sort of magic beyond checking the filename extension (which isn’t a guarantee). You can employ similar sorcery by writing your own Is It ASCII program.
Continue reading