Date: Mon, 19 Apr 1999 18:49:53 -0500 (EST) From: Alfred Perlstein <bright@rush.net> To: notme <notme@lvdi.net> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.ORG> Subject: Re: read from file in csh or sh script Message-ID: <Pine.BSF.3.96.990419184922.11384r-100000@cygnus.rush.net> In-Reply-To: <371BBC73.C03EDA12@lvdi.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990419184922.11384r-100000>