Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!olivea!oliveb!amdahl!krs From: krs@uts.amdahl.com (Kris Stephens [Hail Eris!]) Newsgroups: comp.unix.shell Subject: Re: Piping here documents Message-ID: Date: 8 Feb 91 15:53:06 GMT References: <6061@idunno.Princeton.EDU> Reply-To: krs@amdahl.uts.amdahl.com (Kris Stephens [Hail Eris!]) Organization: Amdahl Corporation, Sunnyvale CA Lines: 50 In article <6061@idunno.Princeton.EDU> rhl@grendel.Princeton.EDU (Robert Lupton (the Good)) writes: >What's the best way of piping a here document into a long shell script? I usually do multi-line here-documents in a function... --- start sample --- : # sh or ksh # # Database search function # searcher() { dbquery $DBNAME <