File:  [Research Unix] / researchv10dc / vol2 / index / finddups
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 '
	{
	if(first == 0){
		first = 1
		lastline = $0
		word = $1
		next
	}
	if($1 == word && $2 !~ /[a-zA-Z]/&& length($2) > 1 && $0 ~ /^ /){
		sub(/.* /,", ",$0)
		print lastline $0
		first = 0
	}
	else {
		print lastline
		lastline = $0
		word = $1
	}
	}
END	{
	print lastline
}
'

unix.superglobalmegacorp.com

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