[init] initial commit

This commit is contained in:
2023-06-05 23:04:30 +08:00
commit 66b1dd4d70
72 changed files with 10079 additions and 0 deletions

13
utool/ipports.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
if [[ $1 == 'port' ]]; then
find /opt/apps/localcr/ -type f -name "*:*:*" | \
awk -F '/' '{print $NF}' | \
awk -F':' 'BEGIN{print "Local", "Container", "Application"} {print $1, $2, $3}' | \
column -t | \
sort -nk 1
elif [[ $1 == 'ip' ]]; then
find /opt/apps/localcr/ -type f -name "10.10.0.*" | awk -F '/' '{print $(NF-1), $NF}' | column -t | sort -k2
else
:
fi