proxmox-scripts/lib.sh

15 lines
271 B
Bash

#!/usr/bin/env bash
get-targets() {
cat /etc/hosts | awk '{print $NF}' | grep -v localhost | grep -v "$(uname -n | awk -F '.' '{print $1}')" | /bin/grep "[a-z]"
}
ignore() {
for iggie in "${_ignore[@]}"; do
if [[ "$*" =~ $iggie ]]; then
true
fi
done
false
}