Saturday, October 24, 2020

IP and Grep to extract address

 This is just another one line command to extract a system IP address

ip -4 a show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}'

No comments:

Post a Comment

 RasPi Pico and an OLED Screen My project for this morning was to connect a small I2C OLED screen to Raspberry Pi Pico and make it do someth...