Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!nr3m From: nr3m@unix.cis.pitt.edu (Matthew A Henry) Newsgroups: comp.unix.shell Subject: csh page and prompt script Message-ID: <93372@unix.cis.pitt.edu> Date: 19 Feb 91 02:32:38 GMT Reply-To: nr3m@unix.cis.pitt.edu (Matthew A Henry) Distribution: na Organization: University of Pittsburgh, CIS Lines: 20 Hi, I am trying to write a csh script that will do the following: Take the output from ls (it will be a long list of files) and have that output paged one screen at a time, like it was piped through more. After each page of the listing is displayed, I would like to prompt the user for a string. If the user hits return without entering a string, then the next page of the listing would be displayed, but if the user does enter a string, I would like it to be assigned to a shell variable, and then exit the script. Any thoughts on the possibility of doing this, e-mailed or posted, would be greatly appreciated. Thanks, Matt Henry nr3m@unix.cis.pitt.edu