From owner-freebsd-questions Tue May 29 13:48:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sdf.lonestar.org (t3-d-static-237.adsl.directlink.net [63.68.131.237]) by hub.freebsd.org (Postfix) with ESMTP id EEA4B37B423 for ; Tue, 29 May 2001 13:48:05 -0700 (PDT) (envelope-from brune@sdf.lonestar.org) Received: (from brune@localhost) by sdf.lonestar.org (8.11.0/8.11.0) id f4TKl6V04361; Tue, 29 May 2001 20:47:06 GMT Message-Id: <200105292047.f4TKl6V04361@sdf.lonestar.org> Subject: Re: reading from batch file with ex To: dochawk@psu.edu (Richard E. Hawkins) Date: Tue, 29 May 2001 20:47:06 +0000 (UTC) From: "Corey Brune" Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <200105291958.f4TJwHV35989@fac13.ds.psu.edu> from "Richard E. Hawkins" at May 29, 2001 03:58:17 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG try: ex < filename Corey Richard E. Hawkins > > ------- =_aaaaaaaaaa0 > Content-Type: text/plain; charset="us-ascii" > Content-ID: <35984.991166297.1@fac13.ds.psu.edu> > > I am writing a script to make needed modifications to a linux > installation file. > > I want to use ex do some of the editing. According to the man page, ex > will read from standard input, but when I create the file "test" > > > ------- =_aaaaaaaaaa0 > Content-Type: text/plain; charset="us-ascii" > Content-ID: <35984.991166297.2@fac13.ds.psu.edu> > > ex fixlinux86 > s/^.*$/#!\/compat\/linux\/bin\/sh/ > w > q > > and then type "sh test" > > ex is loaded, but waits for input from the xterm, rather than from > remainder of the file. Shouldn't the file be standard input in this > context? > > thanks > > hawk > > -- > Prof. Richard E. Hawkins, Esq. /"\ ASCII ribbon campaign > dochawk@psu.edu Smeal 178 (814) 375-4700 \ / against HTML mail > These opinions will not be those of X and postings > Penn State until it pays my retainer. / \ > > > > ------- =_aaaaaaaaaa0-- > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message