From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: "Steve Simon" Date: Sat, 5 Jan 2019 23:46:59 +0000 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] How does one read a file line by line in an rc script? Topicbox-Message-UUID: f2a6b272-ead9-11e9-9d60-3106f5b1d025 What are you running this on, is this byron's rc on unix? I just tried the secript I posted, cut and pasted into a tiny shell scropt called testread, and it just worked=E2=84=A2 maybe some other part of your script has a problem? My script below -----snip-----snip----- #!/bin/rc cat $1 | while(line=3D`{read}){ echo $line } -----snip-----snip----- Also, I didn't have the time to read all of your previous question, but I think what you are after is $"varname, this expands to the value of the variable but as a single argument, no matter if it, when it was assigned, had multiple, white space seperated words in it. for example: (NB: hugo% is my prompt) hugo% fred=3D(a b c d) hugo% echo $fred^-letter a-letter b-letter c-letter d-letter hugo% echo $"fred^-letter a b c d-letter -Steve