Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!uunet!aspect!dave From: dave@aspect.UUCP (Dave Corcoran) Newsgroups: comp.unix.shell Subject: Re: Piping here documents Summary: this may be want you want Message-ID: <7622@aspect.UUCP> Date: 12 Feb 91 19:33:52 GMT References: <6061@idunno.Princeton.EDU> Organization: Aspect Telecommunications, San Jose, Ca Lines: 22 > For a one liner > works just fine, but if the rest of the commands (here just sed) don't > fit on a line this doesn't work. The best that I could come up with was: #!/bin/sh cat <<@@ | sed ' s/1/a/ s/2/b/ s/3/c/ s/4/e/ ' 11 22 33 44 55 @@ -- David Corcoran -@@ uunet!aspect!dave ~ In a society where anything goes eventually everything will.