From owner-freebsd-questions Mon Apr 19 16:27:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from c000.paix.cp.net (c000-h003.c000.paix.cp.net [209.228.15.141]) by hub.freebsd.org (Postfix) with SMTP id 0683414DB0 for ; Mon, 19 Apr 1999 16:27:31 -0700 (PDT) (envelope-from notme@lvdi.net) Received: (cpmta 18796 invoked from network); 19 Apr 1999 16:25:04 -0700 Received: from usr5-ppp118.lvdi.net (HELO lvdi.net) (216.24.141.118) by smtp.lvdi.net with SMTP; 19 Apr 1999 16:25:04 -0700 X-Sent: 19 Apr 1999 23:25:04 GMT Message-ID: <371BBC73.C03EDA12@lvdi.net> Date: Mon, 19 Apr 1999 16:29:55 -0700 From: notme Organization: me++ X-Mailer: Mozilla 4.51 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Subject: read from file in csh or sh script Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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! Frankie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message