1, with the sed command to get the address 192.168.52.20
ifconfig ens33|sed -n '2p'|sed 's#^.*inet ##g'|sed 's# netmask.*$##g'
Ideas: first take the second row, and then remove the front to take the key characters, and then remove the following character, (replaced with a null) can be derived
Note: sed command between only the first and second # can use regular expressions