[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [BOG] URL-oversigt?



Henrik Christian Grove wrote:
Jeg tvivler, men der genereres vel jævnligt nye html-udgaver fra cvs?

Fire gange om dagen, men det vil være besværligt at bruge dem, for når den så finder en død henvisning skal vi til at rode xml-koden igennem for at finde og rette henvisningen.

Så svært kan det vel heller ikke være:


Nu er jeg ikke den store shell-haj, men følgende burde let kunne laves:

for bad in `linkchecker`
do
  grep -A 2 -B 2 "$bad" *
  #kommando til at modtage korrekt link fra bruger
  for file in `grep -l "$bad" *`
  do
    mv $file "$file.old"
    sed "s!$bad!$good!g" < "$file.old" > $file
  done
done

Med venlig hilsen

Ole

 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 18:53 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *