migrate to git.charlotte.sh

This commit is contained in:
Charlotte Croce 2025-04-19 23:42:08 -04:00
commit fbd588721e
412 changed files with 13750 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/bin/bash
# display ONLY IP address
# output ip addr command
# grep for enabled interfaces
# grep to narrow in on IP
# use tr to delete extra letters and spaces from output
ip address | grep 'state UP' -A 3 | grep -o 'inet.*brd' | tr -d 'a-z '