Issue
On Ubuntu 14.04 I'm trying to get only the IP address of my computer in a .csv
format.
id='dv4'>
Solution
This sed
command may be what you're trying to do
ip address |
sed -n -e '/^[[:blank:]]*inet[[:blank:]]/{s///; s/\/.*//; H;}' \
-e '${g; s/./"/; s/\n/","/g; s/$/"/p;}'
Answered By - M. Nejat Aydin Answer Checked By - Robin (WPSolving Admin)