Take the second field and onwards from the file /etc/services, sort the output in unique order, and for each line, take the first line of the file.
cut -d' ' -f2- /etc/services | sort -u | xargs -I % head -n 1 %