Question: Need only IP address as marked in the below image and nothing else.

**[![PLEASE VIEW THIS IMAGE](https://i.stack.imgur.com/YsqxZ.png)](https://i.stack.imgur.com/YsqxZ.png)**

Could someone please provide a specific bash command?

Answer: 
You can use something like this :

```
ifconfig wlan0| awk '/inet /{print $2}'
ifconfig wlan0| grep -w "inet"|cut -d" " -f2

```
You can do it by only grep.

```
ifconfig wlan0 | grep -oE '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'

```