From owner-freebsd-questions Tue Mar 14 12:46:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 0489037B6C5 for ; Tue, 14 Mar 2000 12:46:12 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id OAA97575; Tue, 14 Mar 2000 14:46:00 -0600 (CST) (envelope-from dan) Date: Tue, 14 Mar 2000 14:46:00 -0600 From: Dan Nelson To: keith@mail.telestream.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: silly off topic scripting question Message-ID: <20000314144600.A97517@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.5i In-Reply-To: ; from "keith@mail.telestream.com" on Tue Mar 14 12:26:28 GMT 2000 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Mar 14), keith@mail.telestream.com said: > How can one append a variable in BASH? Like run a loop and have the > results of the loop append a variable instead of just resetting the > variable with the new result? > I have the bash book and don't seem to see this discussed anywhere. $ newdata=hello $ var=test $ var=$var$newdata $ echo $var testhello $ -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message