/ Published in: Bash
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
ip addr list | grep -E "global eth0$"|awk -F" " '{print $2}'|sed 's/\/.*$//g'
Comments
 Subscribe to comments
                    Subscribe to comments
                
                