ceph/qa/find-used-ports.sh

4 lines
120 B
Bash
Executable File

#!/bin/bash
git --no-pager grep -n '127.0.0.1:[0-9]\+' | sed -n 's/.*127.0.0.1:\([0-9]\+\).*/\1/p' | sort -n | uniq -u