Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!tut.cis.ohio-state.edu!att!cbnewsc!woods From: woods@cbnewsc.ATT.COM (Warren D. Swan) Newsgroups: comp.unix.questions Subject: Re: FANCY BANNER Message-ID: <2656@cbnewsc.ATT.COM> Date: 23 Aug 89 22:18:47 GMT References: <730@idsssd.UUCP> Reply-To: woods@cblph.ATT.COM (Warren D. Swan) Organization: AT&T Bell Laboratories Lines: 47 In article <730@idsssd.UUCP> bruce@idsssd.UUCP (Bruce T. Harvey) writes: >In article <10650068@hpisod2.HP.COM>, decot@hpisod2.HP.COM (Dave Decot) writes: >> Hey, that's a good comp.unix.question. >> ... > >And, for all you folks that use banner to produce more than one line of >output display at a time: > >MYvar=$1 >shift >banner "$*" | tr "#" "$MYvar" Excellent. For the sake of discussion, we'll call this script: sign. Just change the "$*" to "$@" and it'll behave even more like a spiffed up version of banner. (Do you see the difference? If we left it as banner "$*" [thanks for using the quotes, most people seem to forget them], then: sign @ "This is" "3 lines" "of info." would cause output like: banner "This is 3 lines of info." with the #s replaced by @s, thusly: @@@@@@@ @@@@@ @ @ @ @ @@@@ @ @@@@ @ @ @ @ @ @ @ @ @ @ @ @@@@@@ @ @@@@ @ @@@@ @@@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@ @ @@@@ @@@@@ INSTEAD OF what was originally intended: banner "This is" "3 lines" "of info." with the #s replaced by @s, which I won't reproduce here. Other than that, Good idea!) Warren D. Swan (WooDS) Y n n ____ __ You can't tell which way a train AT&T Bell Laboratories -(((((([__]/__] went by looking at the tracks. Naperville, Illinois /o-OOOOO~~ oo att!cblph!woods ##################### FRISCO 1630 Decapod (2-10-0) IRM