ip_to_hex function
This commit is contained in:
parent
8aac0b880c
commit
d24140b4de
@ -55,3 +55,7 @@ function copy_k8s_token(){
|
|||||||
grep "id-token" ~/.kube/config | awk '{print $2}' | xclip -sel clip
|
grep "id-token" ~/.kube/config | awk '{print $2}' | xclip -sel clip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ip_to_hex(){
|
||||||
|
IFS=. read oct1 oct2 oct3 oct4 <<< "$1"
|
||||||
|
printf '0x%02x%02x%02x%02x\n' $oct1 $oct2 $oct3 $oct4
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user