::fixture-ready:: $ ss -ltnp State Recv-Q Send-Q Local Address:Port Peer Address:Port Process LISTEN 0 128 127.0.0.1:5432 0.0.0.0:* users:(("postgres",pid=421,fd=5)) LISTEN 0 151 0.0.0.0:3306 0.0.0.0:* users:(("mysqld",pid=733,fd=22)) LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=71,fd=3)) ::exit-code::0 $ ss -ltnp | awk '$4 ~ /:(5432|3306)$/ {print}' LISTEN 0 128 127.0.0.1:5432 0.0.0.0:* users:(("postgres",pid=421,fd=5)) LISTEN 0 151 0.0.0.0:3306 0.0.0.0:* users:(("mysqld",pid=733,fd=22)) ::exit-code::0 $ ss -ltnp | awk '$4 ~ /^(0[.]0[.]0[.]0|[[]::[]]|[*]):(5432|3306)$/ {print}' LISTEN 0 151 0.0.0.0:3306 0.0.0.0:* users:(("mysqld",pid=733,fd=22)) ::exit-code::0