Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.questions Subject: Re: Can sh or csh do this VMS DCL trick?? Message-ID: <1991Apr28.003414.26784@convex.com> Date: 28 Apr 91 00:34:14 GMT References: Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Distribution: comp Organization: CONVEX Software Development, Richardson, TX Lines: 30 Nntp-Posting-Host: pixel.convex.com From the keyboard of davis@pacific.mps.ohio-state.edu (John E. Davis): : In VMS DCL I can do: : $ create post_news.txt : $ deck : In VMS DCL I can do: : : .... etc.... : $ eod : $ exit : : In other words, text following `$ deck' is treated as lines to be fed into :the standard input of the previous command (create in this case). Finally, :the `$ eod' terminates input and control is passed back to the DCL command :procedure. How can I simulate this behavior in csh or sh? Solutions :requiring two files are not acceptable. Sounds like you want the ``here-is'' notation: cat >post_news.txt <