Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!schlep.dec.com!jfcl.dec.com!imokay.dec.com!dje From: dje@imokay.dec.com ( SVS) Newsgroups: comp.unix.questions Subject: Re: Some csh how-to, please Keywords: csh C-shell shell programming unix read Message-ID: <434@imokay.dec.com> Date: 28 Mar 89 13:47:00 GMT References: <2127@pikes.Colorado.EDU> Reply-To: decwrl!ultra.dec.com!ellis Organization: Digital Equipment Corporation, Secure Systems Group Lines: 18 pklammer@pikes.Colorado.EDU (Peter Klammer) writes: > Could someone please tell me how to read a file line at a time > into the C shell? Better yet, can you refer me to any good C-shell > text. So far my references are mere appendices in UNIX manuals with, > "here's a table of equivalent Bourne and C shell commands..."; next to > 'read' in the Bourne column is a blank in the C shell column. THANKS! Check the csh meta-variable $<, which (and I quote from man): Substitutes a line from the standard input, with no further interpretation thereafter. It can be used to read from the keyboard in a shell script. ---- David Ellis Digital Equipment Corporation -- BXB1-1/D03 85 Swanson Road, Boxboro MA 01719 -- (617) 264-5073 Usenet: {ucbvax,allegra,decvax}!decwrl!ultra.dec.com!ellis ARPA: ellis%ultra.dec@decwrl.dec.com