![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic questions on writing a Unix Service (newbie help!) | Rutland Gizz | High Level Programming | 3 | 12-06-2006 06:48 PM |
| Need help on a program I'm writing | dmosheye | Shell Programming and Scripting | 2 | 09-21-2006 03:39 PM |
| writing a program | carlvernon | UNIX for Dummies Questions & Answers | 3 | 06-01-2006 03:47 PM |
| I'm writing a new Linux program! | Danny_10 | What's on Your Mind? | 11 | 10-03-2004 10:09 PM |
| basic math program 4 child | perleo | High Level Programming | 9 | 10-22-2002 04:51 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Having trouble writing a basic shell program
Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take multiple arguments. So far I can write a script using the case command that will do this but it will only take one argument. Also, I need to make it so that if it does not have one of those file extensions then it will return an error message. I think I need to use either a for or while loop and shift to do this but I'm just not getting it for some reason. Any ideas? I appreciate greatly any help anyone might have on this.
|
|
||||
|
Quote:
Thanks man! That is awesome! Thank you so much. ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|