The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Help in getopts
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 11-02-2007
chella chella is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 75
Quote:
Originally Posted by aigles View Post
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.
Thank You for the reply.

Regards,
Chella