So erhalten Sie den Namen des PC -Bash -Skripts

computer_name=$(whoami)

if [ $computer_name == "NAME" ]
then
    echo "a is equal to b in NAME pc"
    echo $computer_name
else
    echo "a is not equal to b another pc"
    echo $computer_name
fi
Merwanski