summaryrefslogtreecommitdiff
path: root/src/completion/list_protocols.sh
blob: e9d50a70fe6a0a2872cf09e70aacc9069c2dbe85 (plain)
1
2
3
#!/bin/sh

grep -v '^#' /etc/protocols | awk 'BEGIN {ORS=""} {if ($3) {print TRS $1; TRS=" "}}'