The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Help in getopts
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Help in getopts
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
11-01-2007
aigles
Registered User
Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,428
If the option is specified after a
normal
argument, it is considered also as an argument.
In your case, you haven't specified the inputfile, the string "-n" is immediately after the command name so it is taken as an option.
Jean-Pierre.
aigles
View Public Profile
Find all posts by aigles
Find aigles's past nominations received
Find aigles's present nominations given