blob: 9652ba1831bc6521635a7255f2aa498f30d11d79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#! /usr/bin/sed -f
#
# each line of the form ^..<tab>.* contains the code for a country.
#
/^.. / {
h
s/^.. \(.*\)/\1./
s/\&/and/g
x
s/^\(..\).*/@item \1/
G
p
}
#
# delete the rest
#
d
|