|
|
1.1 ! root 1: for i in 1 2 3 4 5 6 7 8 9 a ! 2: do ! 3: ! 4: ls /usr/man/man$i | ! 5: sed 's/\(.*\)\.'$i'/\1 \1.'$i/ | ! 6: sort -u - /usr/man/man0/man$i.index >junkx ! 7: ! 8: ls -i /usr/spool/man/man$i | ! 9: sed ' ! 10: /\.'$i'/!d ! 11: s/// ! 12: ' | ! 13: join -j1 2 -o 1.2 2.2 1.1 -a1 -e XXX - junkx | ! 14: sed ' ! 15: /XXX/!{ ! 16: w junky ! 17: d ! 18: } ! 19: s/ .*// ! 20: s/.*/\/usr\/spool\/man\/man'$i'\/&.'$i'/ ! 21: ' ! 22: ! 23: sort +1 junky | ! 24: awk ' ! 25: BEGIN { u = "/usr/spool/man/man'$i'/" } ! 26: $2!=s2 && $3==s3 { print u s1 "." '$i'; print u $1 "." '$i' } ! 27: $2==s2 && $3!=s3 { print u s1 "." '$i'; print u $1 "." '$i' } ! 28: {s1 = $1; s2 = $2; s3 = $3 } ! 29: ' ! 30: ! 31: sort +2 junky | ! 32: awk ' ! 33: BEGIN { u = "/usr/spool/man/man'$i'/" } ! 34: $2!=s2 && $3==s3 { print u s1 "." '$i'; print u $1 "." '$i' } ! 35: $2==s2 && $3!=s3 { print u s1 "." '$i'; print u $1 "." '$i' } ! 36: {s1 = $1; s2 = $2; s3 = $3 } ! 37: ' ! 38: ! 39: done | sort -u
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.