Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!pikes!pklammer From: pklammer@pikes.Colorado.EDU (Peter Klammer) Newsgroups: comp.unix.questions Subject: csh: still trying to read file Keywords: csh C shell read programming unix Message-ID: <2130@pikes.Colorado.EDU> Date: 28 Mar 89 23:25:42 GMT Organization: University of Colorado, Denver Lines: 14 Thank you all; yes, I know $< can accept a line from stdin. But what I want is to read a file a line at a time in the midst of a csh script that is in dialogue; that is, redirecting stdin is not acceptable. I have ordered "The UNIX C Shell Field Guide" by Anderson & Anderson, any other recommendations appreciated. Another csh mystery (at least until I get my book, maybe): if I prepare a csh script file (with the mandatory "#" on line 1) and chmod +x it, and then invoke it from a subdirectory, it is run from my HOME directory! I could get around that by alias'ing my command to "source xxx"; is that what one generally does, or is there some way to get my csh script to know what subdirectory is was run from? Thanks.