7 lines
147 B
Bash
7 lines
147 B
Bash
get_ip() {
|
|
ip a | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | cut -d/ -f1 | head -n 1
|
|
}
|
|
|
|
random() {
|
|
openssl rand -hex "${1:-32}"
|
|
}
|