Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 16:20:45 -0500 (CDT)
From:      David Scheidt <dscheidt@tumbolia.com>
To:        Andre` Niel Cameron <AndreC@Axxs.net>
Cc:        free bsd <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Shell scripting help please:)
Message-ID:  <Pine.BSF.4.32L2.0109251617480.13211-100000@shell-1.enteract.com>
In-Reply-To: <034001c14606$e6c4f4a0$a50410ac@olmct.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Sep 2001, Andre` Niel Cameron wrote:

:I have a question.  If I want to make a script so I can put on the command
:line, install formmail bob
:how would the two command line options be represented in the script?  with
:formmail bieng the script and bob bieng the user?  IE
:
:install formmail bob

Positional arguements are represented as numbers, starting with one.  To
use the value of a variable, you need to put a $ in front of it:

#!/bin/sh
echo $1 $2

Would echo the first two arguments on the command line.  sh(1) has a
reasonable man page.  Read it.

-- 
dscheidt@tumbolia.com
Bipedalism is only a fad.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.32L2.0109251617480.13211-100000>