comparison .ssh/onsubnet @ 251:b00e6b403896

Added airline-colour-splits and removed whitespace
author Steve Huston <huston@srhuston.net>
date Wed, 27 Mar 2024 16:31:21 -0400
parents 83f164405755
children
comparison
equal deleted inserted replaced
250:5619e06b048e 251:b00e6b403896
23 ifconfig | fgrep 'inet ' | fgrep -v 127.0.0. | cut -d ' ' -f 2 | egrep -q "$regexp" 23 ifconfig | fgrep 'inet ' | fgrep -v 127.0.0. | cut -d ' ' -f 2 | egrep -q "$regexp"
24 else 24 else
25 hostname -I | tr -s " " "\012" | fgrep -v 127.0.0. | egrep -q "$regexp" 25 hostname -I | tr -s " " "\012" | fgrep -v 127.0.0. | egrep -q "$regexp"
26 fi 26 fi
27 27
28 if [[ $? == 0 ]]; then 28 if [[ $? == 0 ]]; then
29 exit $on 29 exit $on
30 else 30 else
31 exit $off 31 exit $off
32 fi 32 fi