File:  [Research Unix] / researchv10dc / vol2 / index / tools / mkinsert
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

awk '
/^[0-9][0-9]*/	{
	if(start)print cmd
	number=$1
	sub(/^[0-9][0-9]* /,"")
	laststr=$0
	cmd = number "i\\\n.Tm " $0
	start=1
	next
	}
/.*/	{
	if($0 != laststr){
		cmd = cmd "\\\n.Tm " $0
		laststr=$0
	}
	}
END	{print cmd}
' $1

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.