Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/lib/dist/logcompress.awk

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


{
	verb[$4] = $3
	data[$4] = sprintf("%s %s %s %s %s %s", $5, $6, $7, $8, $9, $10)
}

END{
	for(i in verb)
		if(verb[i] != "d")
			printf("a %s %s\n", i, data[i]) |"sort +1"
	close("sort +1")
	for(i in verb)
		if(verb[i] == "d")
			printf("d %s %s\n", i, data[i]) |"sort -r +1"
	close("sort -r +1")
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.