in /etc/services
file I can see duplicate lines
for example
the following line is duplicate ( or more )
odasrv 2432/udp
so it can easily deleted by sed as the follwing
sed -i '/codasrv 2432\/udp/d' /etc/services
but the problem is that sed delete all this duplicate lines
so what I need to change in the sed
syntax
in order to delete all duplicate lines except the first one ?