#!/bin/bash ############################################################################## # # # chkNamedLinks, (C) 2007-2010 S. Georgaras # # # # This file is part of Clonezilla-SysRescCD. # # # # Clonezilla-SysRescCD 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. # # # # Clonezilla-SysRescCD 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 Clonezilla-SysRescCD. If not, see . # # # ############################################################################## count=0 cd working grep -H '<[aA] [nN][aA][mM][eE]="' *.html | sed 's|\([^:]*\):\(.*\)|\2:\1|' | sed 's|.*[aA] [nN][aA][mM][eE]="||' | sed 's|">')" if [ -n "$nameTop" ];then name[$count]="$n" nameTop[$count]="$nameTop" else echo "===$n === NO top NAME FOUND!!! ===" exit 1 fi ((count++)) done count=0 while [ -n "${name[$count]}" ];do echo -n "${name[$count]} -- " theTop="$(echo "${nameTop[$count]}" | sed 's|