From owner-freebsd-questions@FreeBSD.ORG Mon Jul 21 08:03:10 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F44737B401 for ; Mon, 21 Jul 2003 08:03:10 -0700 (PDT) Received: from www.bluecirclesoft.com (cvg-65-26-145-190.cinci.rr.com [65.26.145.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id B826A43FAF for ; Mon, 21 Jul 2003 08:03:09 -0700 (PDT) (envelope-from marc.ramirez@bluecirclesoft.com) Received: from www.bluecirclesoft.com (localhost [127.0.0.1]) h6LF38SW047420; Mon, 21 Jul 2003 11:03:08 -0400 (EDT) (envelope-from mrami@bluecirclesoft.com) Received: from localhost (mrami@localhost)h6LF38dY047417; Mon, 21 Jul 2003 11:03:08 -0400 (EDT) X-Authentication-Warning: www.bluecirclesoft.com: mrami owned process doing -bs Date: Mon, 21 Jul 2003 11:03:08 -0400 (EDT) From: Marc Ramirez To: Jimmy In-Reply-To: <007401c34e15$d9f09bd0$0dd011ac@sg030017> Message-ID: <20030721110112.O47203@www.bluecirclesoft.com> References: <007401c34e15$d9f09bd0$0dd011ac@sg030017> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: Advise needed to write a script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 15:03:10 -0000 On Sun, 20 Jul 2003, Jimmy wrote: > Hi > Good day to you. I need your advice to wrte a script > 1) stores the sum of A plus B in variable C > 2)Stores the difference of B minus A in variable C > > If A is 5 and B is 10. Please advice me on this issue pls . > Hope to hear from you soon. -------------------- #!/bin/sh # set A to 5 # set B to 10 # set C to A plus B # set C to B minus A -------------------- Tree falling in the woods... Tree falling in the woods... > Cheers > > Jimmy Chan > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > -- Marc Ramirez Blue Circle Software Corporation 513-688-1070 (main) 513-382-1270 (direct) www.bluecirclesoft.com