blob: e006222458fa9171668e0e1e082db89cb90fa2a7 (
plain)
1
2
3
4
5
6
7
|
#!/bin/bash
# Output filtered list of hostnames from known_hosts
cut -d\ -f1 ~/.ssh/known_hosts ~/.ssh/known_hosts_work | tr , "\n" \
| sed -r 's#(_ecdsa|_rsa|_ed25519|_dsa)$##' | sort -u \
| grep -P "$@"
|