From owner-freebsd-questions Sun Feb 7 17:32:16 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA21219 for freebsd-questions-outgoing; Sun, 7 Feb 1999 17:32:16 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hyperhost.net (ether.lightrealm.com [207.159.132.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA21105 for ; Sun, 7 Feb 1999 17:32:02 -0800 (PST) (envelope-from patseal@hyperhost.net) Received: from port2.annex8.radix.net (port2.annex8.radix.net [205.252.108.2]) by hyperhost.net (8.8.5/8.8.5) with ESMTP id UAA09886; Sun, 7 Feb 1999 20:28:20 -0500 (EST) Date: Sun, 7 Feb 1999 20:28:58 -0500 (EST) From: Patrick Seal To: root@isis.dynip.com cc: ben@scientia.demon.co.uk, freebsd-questions@FreeBSD.ORG Subject: Re: Help About Shell Script In-Reply-To: <199902080041.DAA21348@isis.dynip.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Don't worry about perl. I learned it at 14 and had it pretty well mastered (meaning I could Obfuscate my code for dem contests) as I turned 16. I also learned C about that time and now (being sixteen) am learning C++. Perl is *really* easy to learn. Go to www.oreilly.com and get 'Learning Perl', 'Programming Perl', and if you're rich get the 'Perl Cookbook' too. There's also a really nifty Pocket Reference. ------------------------------------ _____________________________________ Patrick Seal |"Microsoft isn't evil, they just make | really crappy operating systems." Hyperhost - http://www.hyperhost.net| -Linus Torvalds hosting and Design http://www.freebsd.org - http://www.linux.org On Mon, 8 Feb 1999 root@isis.dynip.com wrote: > On 7 Feb, Ben Smithurst wrote: > > Please remember to cc all replies to the mailing list. > > Sorry. > > > >> What if we wanted to tke the variables i and j > >> from a file. > > > > That would depend what format the file was. At the simplest level, with > > two files called "current_i" and "current_j", containing the numbers > > alone, you can read that like so: > > > > i=$(cat current_i) > > j=$(cat current_j) > That's too simple, but kinda reduntant, they are actually 4 loops > inside one-another, can't think of creating 4 files each containing an > integer, this won't be programming, its carpenting. > > > > If the file contains something like > > > > i=5 > > j=18 > > > > you could probably do > > > > eval $(cat name_of_the_file) > > did not get this one, you mean ; > > i= $(cat name_of_the_file) ??? > > if that's what you mean, then you solved my problem. > > > I'd recommend using Perl if you go much more complex. > > Ya, That's aa coooool thing to learn, I have seen what perl scripts can > do. But I think its very extensible language, I mean I'll be 65 years > before I reach the bottom of it, is that so, I'm ready to learn new > things, and always wish to learn the devls such as perl, tcl, tk, but > I'm kinda afraid that they'd be difficult for me to learn. > > Thanks very much for your replies, see ya soon. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message