🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #271

Re: script to center text

#271
From: Martin Weitzel
Date: Fri, 31 Jul 1992 17:38
17 lines
933 bytes
In article <1992Jul28.151623.12798@news.eng.convex.com> tchrist@convex.COM (Tom Christiansen) writes:
[...]
>On the other hand, this solution
>
>    perl -pe 'print " " x int((80 - length())/2)' 
>
>not rely on echo behavior, isn't a process pig, and doesn't
>run afoul of my /bin/test command.  It also runs a tad faster:

perl: not found

Sorry, couldn't resist :-)



-- 
Martin Weitzel, email: martin@mwtech.UUCP, voice: 49-(0)6151-6 56 83
Technical Details
Message-ID: <1307@mwtech.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!mikros!mwtech!martin
References: <AeRB8p600WB60JlPZc@andrew.cmu.edu> <josef.712322528@uranium> <1992Jul28.151623.12798@news.eng.convex.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!mikros!mwtech!martin
From: martin@mwtech.UUCP (Martin Weitzel)
Newsgroups: comp.unix.shell
Subject: Re: script to center text
Message-ID: <1307@mwtech.UUCP>
Date: 31 Jul 92 17:38:28 GMT
References: <AeRB8p600WB60JlPZc@andrew.cmu.edu> <josef.712322528@uranium> <1992Jul28.151623.12798@news.eng.convex.com>
Reply-To: martin@mwtech.UUCP (Martin Weitzel)
Organization: MIKROS Systemware, Darmstadt/W-Germany
Lines: 17