[fix] egrep deprecation warning

This commit is contained in:
Florian Pabler 2025-10-20 14:15:51 +02:00
commit 6bab89bf0d
No known key found for this signature in database
GPG key ID: FF30186E24D035C1

View file

@ -5,7 +5,7 @@
_ssh_configfile="$HOME/.ssh/config"
if [[ -f "$_ssh_configfile" ]]; then
_ssh_hosts=($(
egrep '^Host.*' "$_ssh_configfile" |\
grep -E '^Host.*' "$_ssh_configfile" |\
awk '{for (i=2; i<=NF; i++) print $i}' |\
sort |\
uniq |\