#!/bin/bash
BIN=../../../../bin
if [ -f $BIN/netgo ];
then
	cd $BIN && ./netgo devices | grep --color=none -o "\d\+\.\d\.\d\.\d\+\|ttext\">[^<]\+<" | grep --color=none -o ">[^<]\+" | grep --color=auto -C1 ">[^\.:]\+$"
else
	echo "$BIN/netgo doesn't exist"
fi

#!/bin/bash
netgo devices 2>/dev/null | grep --color=none -o "\d\+\.\d\.\d\.\d\+\|ttext\">[^<]\+<" | grep --color=none -o ">[^<]\+" | grep --color=auto -C1 ">[^\.:]\+$" || {
	echo "netgo doesn't exist in PATH"
}

Make device grep script run the netgo in PATH
Make device grep script run the netgo in PATH
