Files
Bash_Scrips/scripts/command_loop.sh
2025-06-23 21:19:51 +02:00

18 lines
192 B
Bash

#!/bin/bash
FILE=$1
if [ $# -lt 1 ]
then
echo "Syntax: ./$(basename $0) <file name>"
exit
fi
for host in $(cut -d ":" -f2 ${FILE})
do
whois $host
#ssh -n root@$host "vgdisplay"
done