home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sources.wanted:3763 alt.sources.wanted:1285
- Path: sparky!uunet!darwin.sura.net!mips!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!es2j+
- From: es2j+@andrew.cmu.edu (Edward John Sabol)
- Newsgroups: comp.sources.wanted,alt.sources.wanted
- Subject: script to center text
- Message-ID: <AeRB8p600WB60JlPZc@andrew.cmu.edu>
- Date: 27 Jul 92 20:51:01 GMT
- Organization: Senior, Physics, Carnegie Mellon, Pittsburgh, PA
- Lines: 9
-
- Could someone post a awk, perl, or sed script which can center text. I'd
- like to be able to pipe a file or region into it and get out the same
- text only centered in 80 columns.
-
- It shouldn't be hard to do, but I don't know awk or perl very well. I
- can do it in C, of course, but I want a script for ease of portability
- and the smaller size. Speed needn't be an issue.
-
- Thanks.
-