scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

tagstrip.sed (302B)


      1 # sed script for removing script tags
      2 # from web pages for better offline viewing
      3 # experience.
      4 
      5 # instructions:
      6 # save it as strip.sed or any other filename
      7 # you like.
      8 
      9 # usage:
     10 # sed -f strip.sed file.html
     11 
     12 s%<script.*>.*</script>%<!-- deleted -->%
     13 /<script.*>.*/,/<\/script>/s/.*/<!-- deleted -->/