Advanced

Extracting Different File Types On Linux And Unix - Guest Post

Posted by eggi on · 3 comments
The Linux and Unix Menagerie; By Mike Tremell
Mail this story
Print this story

A nice little function for bash to get the week kicked off right :)

Full Story

  Nav
» Read more about: Story Type: Editorial, Tutorial; Groups: Community, Linux, Sun

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (3)

Extracting file types

Thank you eggi.

I wish I knew where this stuff is hidden.

There's an easier way in Debian

File type recognition by file extension is evil. There are muc better ways. Besides that, there already exist a universal commandline unpacker that does exactly what this script tries to do, but then properly: "unp".

Just `aptitude install unp` and then `unp your.archive.file`. The unp program can automatically use any and all unpackers that you have on your system (unrar, unzip, gunzip, untar, etcetera, etcetera).
There's also apack (recentry featured in the Package of the Day).

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post