File: htmlbody.awk

package info (click to toggle)
fim 0.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,048 kB
  • sloc: cpp: 32,769; ansic: 4,507; makefile: 1,549; sh: 1,502; perl: 189; exp: 28; 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; }