Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!clarkson!ub!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!uunet!mcsun!hp4nl!targon!andre From: andre@targon.UUCP (andre) Newsgroups: comp.unix.questions Subject: Re: Can sh or csh do this VMS DCL trick?? Message-ID: <1739@targon.UUCP> Date: 2 May 91 20:20:38 GMT References: Distribution: comp Organization: Siemens Nixdorf Informationsystems BV.,SWZ, Vianen, the Netherlands. Lines: 28 In article davis@pacific.mps.ohio-state.edu (John E. Davis) writes: > In VMS DCL I can do: > > $ create post_news.txt > $ deck > Hi, > $ eod > $ exit > How can I simulate this behavior in csh or sh? Solutions >requiring two files are not acceptable. Easy, use a "here document" like: $ mail foo < hi > etc... >eod and everything between the command and the first line that starts with eod is taken as stdin of mail. (you can also use <