/[clonezilla-sysresccd]/trunk/www/chkNamedLinks
ViewVC logotype

Annotation of /trunk/www/chkNamedLinks

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (hide annotations)
Wed Mar 17 23:46:34 2010 UTC (11 years, 7 months ago) by sng
File size: 909 byte(s)
adding www directory
1 sng 28 #!/bin/bash
2     count=0
3     cd working
4     grep -H '<[aA] [nN][aA][mM][eE]="' *.html | sed 's|\([^:]*\):\(.*\)|\2:\1|' | sed 's|.*[aA] [nN][aA][mM][eE]="||' | sed 's|"></[aA][^:]*:| - |' | sort
5     #grep -H '<[aA] [nN][aA][mM][eE]="' *.html| sed 's|.*[aA] [nN][aA][mM][eE]="||' | sed 's|"></[aA].*||' | sort
6    
7    
8    
9     exit
10    
11     for n in *.html;do
12     nameTop="$(grep '<[aA] [nN][aA][mM][eE]="' "$n" | grep '\-top">')"
13     if [ -n "$nameTop" ];then
14     name[$count]="$n"
15     nameTop[$count]="$nameTop"
16     else
17     echo "===$n === NO top NAME FOUND!!! ==="
18     exit 1
19     fi
20     ((count++))
21     done
22    
23     count=0
24     while [ -n "${name[$count]}" ];do
25     echo -n "${name[$count]} -- "
26     theTop="$(echo "${nameTop[$count]}" | sed 's|<a name=\"||' | sed 's|-top.*||')"
27     echo "$theTop"
28    
29    
30     allNames="$(grep '<[aA] [nN][aA][mM][eE]="' "${name[$count]}"| sed 's|.*[aA] [nN][aA][mM][eE]="||' | sed 's|"></[aA].*||')"
31     echo "$allNames" | sed 's|^| |g'
32    
33    
34     ((count++))
35     done

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26