Search Results

Search: Posts Made By: amarshukla
5,362
Posted By amarshukla
very close
Thank you very much for the precise code. The best I could make using your code is as below -

ip -o -4 addr | awk '{print $2 " " $4}'

it gives output as -


lo 127.0.0.1/8
enp2s0...
5,362
Posted By amarshukla
Help with ifconfig shell script
I am new to shell scripting and trying to create a shell script which will extract and print only ip address from ifconfig command and not all the information. I have two issues here -
1. To know...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy