You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Network-Util.sh
There are easier ways to get network information,
Since you are making utilities out of it and it is a bit more advanced than I know how to script, I just wanna let you know that there are ways to get information about a network. Such as obtaining an IP address. lines 58-76: What is trying to be accomplished here? (please leave comments on your code so people can help with it,) From what it looks like you're trying to gain IP info and root permission. Since you are setting a function, it would be easier to use a command that already gives you IP information (hostname -I). Also From what is being displayed from line 99, you're looking for a loopback. you can already tell if there's a loopback from IP add command. But this is just a recommendation. (trying to help ya :) )
The text was updated successfully, but these errors were encountered:
Network-Util.sh
There are easier ways to get network information,
Since you are making utilities out of it and it is a bit more advanced than I know how to script, I just wanna let you know that there are ways to get information about a network. Such as obtaining an IP address. lines 58-76: What is trying to be accomplished here? (please leave comments on your code so people can help with it,) From what it looks like you're trying to gain IP info and root permission. Since you are setting a function, it would be easier to use a command that already gives you IP information (hostname -I). Also From what is being displayed from line 99, you're looking for a loopback. you can already tell if there's a loopback from IP add command. But this is just a recommendation. (trying to help ya :) )
The text was updated successfully, but these errors were encountered: