#// view.awk #// insert text #// 27.03.2015 #// #// Copyright (C) 2015 Balthasar SzczepaƄski #// #// This program is free software: you can redistribute it and/or modify #// it under the terms of the GNU Affero General Public License as #// published by the Free Software Foundation, either version 3 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 Affero General Public License for more details. #// #// You should have received a copy of the GNU Affero General Public License #// along with this program. If not, see . ###reusedfrommirror; { # if ($0 ~ /^###sig&/) # { # split ($0 ,arr,"&") # system("cat " sig arr[2]) # } # else if ($0 ~ /^###inf&/) # { # split ($0 ,arr,"&") # system("cat " otterinf arr[2]) # } # else if ($0 ~ /^###prev/) # { # print left # } # else if ($0 ~ /^###next/) # { # print right # } # else if ($0 ~ /^###links/) # { # system ("cat " links); # } # else if ($0 ~ /^###info/) { print info; } else if ($0 ~ /^###title/) { print title; } else { print $0 } };