Anpassungen

This commit is contained in:
braniz
2021-04-28 13:17:03 +02:00
parent 5686fed746
commit b6f08cb8fa
4 changed files with 32 additions and 21 deletions

12
vbox_ip.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
VAR_VBox="vboxmanage list runningvms"
VAR_RUN="$($VAR_VBox | awk '{print ($1)}' | sed 's/"//g')"
echo -e "$VAR_RUN \t\t\tAAA"
for i in $VAR_RUN
do VBoxManage guestproperty enumerate $i | grep IP | grep -o -w -P -e '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'
done