Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (15 sloc) 605 Bytes
#!/usr/bin/env bash
## @copyright 2018 DennyZhang.com
## Licensed under MIT
## https://www.dennyzhang.com/wp-content/mit_license.txt
##
## File: hello
## Author : Denny <https://www.dennyzhang.com/contact>
## Description :
## https://unix.stackexchange.com/questions/365225/how-to-get-the-ipv4-address-for-an-interface-from-proc
## https://cheatsheet.dennyzhang.com/cheatsheet-process-A4
## --
## Created : <2018-10-06>
## Updated: Time-stamp: <2018-11-04 22:53:26>
##-------------------------------------------------------------------
cat /proc/net/fib_trie | grep "|--" | egrep -v "0.0.0.0| 127."
You can’t perform that action at this time.