![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2004
Posts: 6
Rep Power: 0
![]() |
using getopt in a shell script
Hi all.
I'm pretty new to shell scripting and would like to know if it is possible to use getopt in my shell script so that the parsing of parameters is done for me. For example I want to make a shell script that creates a javac compile command for you. Lets call my script makecompile. makecompile -l /libraryLocation myprog.jar or makecompile myprog.jar -l /libraryLocation should both have the same effect and would add all the files in the /libLocation to the classpath. I've read most of the getopt manual, but I'm just not sure how to use getopt in a script. A small example of doing this would be appreciated. BTW I'm not even sure that getopt is the right thing to use, I just came across it and thought it would be a good idea. Thanks in advance. Pico |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|