mirror of https://git.sr.ht/~skiqqy/bin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
289 B
11 lines
289 B
#!/bin/bash
|
|
# @Auther github@skiqqy
|
|
|
|
addr1=$(echo $1 | cut -d "." -f 1)
|
|
addr2=$(echo $1 | cut -d "." -f 2)
|
|
addr3=$(echo $1 | cut -d "." -f 3)
|
|
addr4=$(echo $1 | cut -d "." -f 4)
|
|
|
|
. binary 0 > /dev/null
|
|
|
|
echo $(toBinary $addr1)"."$(toBinary $addr2)"."$(toBinary $addr3)"."$(toBinary $addr4)
|
|
|