3 # center - center a group of lines
5 # tabs in the lines might cause this to look a little bit off
8 # Chet Ramey <chet.ramey@case.edu>
10 # Copyright 1999 Chester Ramey
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2, or (at your option)
17 # TThis program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software Foundation,
24 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
37 printf "%*s\n" $(( (width+${#REPLY})/2 )) "$REPLY"