File: htmlbody.awk

package info (click to toggle)
fim 0.5~rc2-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,240 kB
  • ctags: 3,308
  • sloc: cpp: 25,233; ansic: 4,390; sh: 1,306; makefile: 398; perl: 189; exp: 25; awk: 9
file content (9 lines) | stat: -rwxr-xr-x 192 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
#!/usr/bin/awk -f
#
# This program extracts the body of an HTML file.
#
BEGIN { sp=0 }
/^.\/\<body\>/ { sp=sp+1; }
/.*/ { if(sp==1){ gsub("&minus;","-"); print; } }
/^.\<body\>/ { sp=sp+1; }