home *** CD-ROM | disk | FTP | other *** search
- START {res=0}
- /:h1./ {
- gsub (":h1.", "", $0);
- printf(":h1 res=%d.", res++);
- print $0
- next
- }
- /:h2./ {
- gsub (":h2.", "", $0);
- printf(":h2 res=%d.", res++);
- print $0
- next
- }
- /:h3./ {
- gsub (":h3.", "", $0);
- printf(":h3 res=%d.", res++);
- print $0
- next
- }
- /:h4./ {
- gsub (":h4.", "", $0);
- printf(":h4 res=%d.", res++);
- print $0
- next
- }
- // {
- print $0
- }
-