dotfiles/.local/bin/isup

5 lines
78 B
Plaintext
Raw Normal View History

2018-12-26 00:40:38 +01:00
#!/bin/bash
ip=$(host -W 5 $1 | grep 'has address' | cut -d' ' -f4)
echo $ip