Y
Hacker News
new
|
ask
|
show
|
jobs
by
dvh
1328 days ago
Not exactly that but your first step should be to use magic to determine file type:
https://en.wikipedia.org/wiki/File_(command)