summaryrefslogtreecommitdiff
path: root/Conky/getInternalIp.sh
blob: 88941994871ba0afb1799188ac3e83c82f222f58 (plain)
1
2
3
#!/bin/bash

ifconfig $1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'