Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!uunet!mcsun!unido!unibi.uni-bielefeld.de!graf21 From: graf21@unibi.uni-bielefeld.de (0152) Newsgroups: comp.unix.questions Subject: Re: Can sh or csh do this VMS DCL trick?? Message-ID: <1991May02.175533.462@unibi.uni-bielefeld.de> Date: 2 May 91 17:55:33 GMT Article-I.D.: unibi.1991May02.175533.462 References: <1991Apr28.003414.26784@convex.com> Sender: Sebastian Lisken Distribution: comp Organization: Universitaet Bielefeld Lines: 33 In article <1991Apr28.003414.26784@convex.com> tchrist@convex.COM (Tom Christiansen) writes: > >Sounds like you want the ``here-is'' notation: > > cat >post_news.txt < blah blah > ... etc .. > EOD > My favourite way of using "here-documents" is to to pipe the "document" into the desired command through an intermediate "sed", like this: sed 's/^\.//' | your-command -options args <