dotfiles/.local/bin/isup

5 lines
78 B
Bash
Executable File

#!/bin/bash
ip=$(host -W 5 $1 | grep 'has address' | cut -d' ' -f4)
echo $ip