6 lines
114 B
Plaintext
6 lines
114 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
ssh_hosts=$(grep -E 'Host [a-z0-9\-]*$' ~/.ssh/config | awk '{print $2}')
|
||
|
|
||
|
echo "$ssh_hosts"
|