From 47039381c5431f842cd7b9cf49e1653802aa17eb Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 13 2010 15:27:19 +0000 Subject: Add output_forRendering.awk to centos-art.sh Style directory. --- diff --git a/Scripts/Bash/Style/output_forRendering.awk b/Scripts/Bash/Style/output_forRendering.awk new file mode 100644 index 0000000..208e3dc --- /dev/null +++ b/Scripts/Bash/Style/output_forRendering.awk @@ -0,0 +1,37 @@ +#!/usr/bin/gawk +# +# output_forRendering.awk -- This file provides the output format for +# all rendering actions inside centos-art.sh script. +# +# Copyright (C) 2009-2010 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +BEGIN { FS=": " } + +{ + if ( $0 ~ /^-+$/ ) + print $0 + else + printf "%-15s\t%s\n", $1, $2 + +} + +END {}