Quick question for the Linux Vets:
If I run the following command ifconfig | grep -in inet
I get a output of 4 lines of information on my screen where the word 'inet' appears the question is how do I cut this output down and get it to show a specific item. for example the ip address.
So how can I pipe the command further to narrow the results down? do I need awk? Sed? regex? cut?
Enlighten me oh mighty gods

The goal is to store the command as a variable to display the IP Address

so I can run it in a script