DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Get IP ADDRESS
ip addr show
|
grep
-
w inet
|
grep
-
v
127.0
.0
.1
|
awk
'{ print $2}'
|
cut
-
d
"/"
-
f
1
Source by www.veritech.net #
PREVIOUS
NEXT
Tagged:
#Get
#IP
#ADDRESS
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit