From owner-freebsd-questions Mon Apr 19 16:36:48 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id 9263114F5D for ; Mon, 19 Apr 1999 16:36:41 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id SAA02421; Mon, 19 Apr 1999 18:49:54 -0500 (EST) Date: Mon, 19 Apr 1999 18:49:53 -0500 (EST) From: Alfred Perlstein To: notme Cc: "freebsd-questions@freebsd.org" Subject: Re: read from file in csh or sh script In-Reply-To: <371BBC73.C03EDA12@lvdi.net> 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 On Mon, 19 Apr 1999, notme wrote: > Hi > Well, this is probably a stupid question, but can anyone please > tell me (or give me a reference) the command for reading from a file > to a variable in shell script. (csh or sh). > (what I mean is kinda like the following in C++) > > filehandle >> a_string_var; > > Thank you in advance! var=`cat file`; -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message