Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2001 15:58:17 -0400
From:      "Richard E. Hawkins" <dochawk@psu.edu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   reading from batch file with ex
Message-ID:  <200105291958.f4TJwHV35989@fac13.ds.psu.edu>

next in thread | raw e-mail | index | archive | help
------- =_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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105291958.f4TJwHV35989>