From owner-freebsd-questions Tue Sep 25 14:21: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp-1.enteract.com (smtp-1.enteract.com [207.229.143.33]) by hub.freebsd.org (Postfix) with ESMTP id EC2F637B401 for ; Tue, 25 Sep 2001 14:20:55 -0700 (PDT) Received: from shell-1.enteract.com (shell-1.enteract.com [207.229.143.40]) by smtp-1.enteract.com (Postfix) with ESMTP id 470F876D8; Tue, 25 Sep 2001 16:20:45 -0500 (CDT) Date: Tue, 25 Sep 2001 16:20:45 -0500 (CDT) From: David Scheidt X-X-Sender: To: Andre` Niel Cameron Cc: free bsd Subject: Re: Shell scripting help please:) In-Reply-To: <034001c14606$e6c4f4a0$a50410ac@olmct.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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