File: fix.nawk

package info (click to toggle)
x11-session-utils 7.7%2B6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,196 kB
  • sloc: ansic: 7,754; sh: 4,484; makefile: 240; awk: 32; sed: 7
file content (24 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/nawk -f
# $Xorg: fix.nawk,v 1.3 2000/08/17 19:42:50 cpqbld Exp $
#

BEGIN {
	ignore = 1;
}

/FORMFEED\[Page/	{
	sub("FORMFEED", "        ");
	print;
	print "";
	ignore = 1;
	next;
}

$0 == "" {
	if(ignore) next;
}

{
	ignore = 0;
	print;
}