Linux / UNIX Tech Support Forum
This is a discussion on case esac reduce code ? within the Shell scripting forums, part of the Development/Scripting category; I have this shell script : Code: Usage: $0 {all | opt1 | opt2 | opt3 | ... | opt9}" ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have this shell script :
Code:
Usage: $0 {all | opt1 | opt2 | opt3 | ... | opt9}"
case $1 in
In my situation, every expression is very long and have many command... How can I reduce typing in the option 'all' so it work with all the option from 1->9->n |
| Sponsored Links | ||
|
|
|
|||
|
![]() |
| Tags |
| bash , case , esac , linux , shell scripting , unix |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| an example of wait3 and wait4 code ? | demuytree | Coding in General | 0 | 16-11-2008 03:08 PM |
| PHP code performance | zafar466 | Linux software | 1 | 22-04-2007 08:23 PM |
| Linux Finding Files Irrespective of Case | chiku | Linux software | 1 | 16-01-2007 08:36 PM |
| Load OpenOffice.org in zippy i.e. reduce startup time | tom | Getting started tutorials | 2 | 26-02-2006 10:36 AM |
| SNMP error CODE | MRTG Mediocre | Linux software | 3 | 18-03-2005 01:05 PM |