From owner-freebsd-chat Thu Feb 27 06:14:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA28165 for chat-outgoing; Thu, 27 Feb 1997 06:14:39 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA28156 for ; Thu, 27 Feb 1997 06:14:33 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id AAA04077; Fri, 28 Feb 1997 00:43:03 +1030 (CST) From: Michael Smith Message-Id: <199702271413.AAA04077@genesis.atrad.adelaide.edu.au> Subject: Re: Autocreate script In-Reply-To: from Vincent Poy at "Feb 27, 97 05:59:04 am" To: vince@mail.MCESTATE.COM (Vincent Poy) Date: Fri, 28 Feb 1997 00:43:00 +1030 (CST) Cc: msmith@atrad.adelaide.edu.au, chat@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-chat@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Vincent Poy stands accused of saying: > > $ echo $string | cut -c 1-8 > > SomeLong > > Thanks! > > OK...how would I get that result into another variable like $string2 ? Cripes Vince, how f'n lazy are you? How about you spend a few well-worth-it hours reading the 'sh' documentation? I'll even give you a hint : learn the difference between ` and '. > Vince - vince@MCESTATE.COM - vince@GAIANET.NET ________ __ ____ -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[