LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2005, 04:58 AM   #1
gtgoku
Member
 
Registered: Jul 2003
Location: India
Distribution: Slackware 10; FreeBSD 4.10
Posts: 77

Rep: Reputation: 15
Lightbulb Decompress


There are so many compression utilities available and so many compressed file types and each one has a different app to extract that particular compressed file. So i was wondering if there was an application for the terminal which would automatically find out the compressed file type and call upon the required app to decompress it. for example

<the all file decompressor> <compressed file name> <location to decompress>

this could also be a shell script , but i personally dont have enough experience with bash to write such a script.
Now people could ask me to use thing like ark, but i want a commandline tool.
 
Old 04-06-2005, 10:45 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Hrm, if you wanted a script, you could do something like, awk -F. { $ll } or whatever the last item in an awk expression is, I'd have to look it up. Then it would be a giant case statement as it went through all the possibles for decom.

However, there are really only a few out there that are used with any frequency. zip, Z ( usually solaris ), gz, and bz. You use unzip, uncompress ( usually solaris ), gunzip and bunzip. You'll get the occasionaly rar , but there's also tar, I do not like green eggs and ham.

Anyway, not that big of a deal, from my perspective.
 
Old 04-06-2005, 09:19 PM   #3
gtgoku
Member
 
Registered: Jul 2003
Location: India
Distribution: Slackware 10; FreeBSD 4.10
Posts: 77

Original Poster
Rep: Reputation: 15
well i think i might learn awk or bash to program this thing. if no one has done this sorta a thing earlier. this might be one step closer to making linus user friendly in the CLI. lol
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't decompress qt bcf2 Linux - Newbie 3 10-29-2004 09:19 PM
Slow Kernel Decompress chasingmytail Linux - Laptop and Netbook 4 07-16-2004 09:22 AM
Slow Kernel Decompress chasingmytail Slackware 9 07-15-2004 09:46 AM
decompress tar gz files? buccaneer Linux - Newbie 5 01-19-2004 02:15 AM
cant decompress libdvdcss syouth333 Linux - Software 6 07-20-2002 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration