Am vazut pe forum ca se tot vand nologine si m-am gandit sa fac un script care sa zica ce tara sunt. Avem asa: cat go #!/bin/bash # wn nologin geoip scripts. # cat $1 |replace " " ":" |replace ":|:no:host" "" >a for x in `cat a` do echo $x | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' >ip LINE=`cat ip` IP=`lynx -dump "http://www.geoiptool.com/en/?IP=$LINE" | sed -n '/Host Name/,/Postal code/p'` COUNTRY=`echo "$IP" | awk 'BEGIN { FS = "\n" ; RS = "" } { print $4 }' | awk '{print $3}'` CITY=`echo "$IP" | awk 'BEGIN { FS = "\n" ; RS = "" } { print $5 }' | sed -e 's/\(Region:\|Region:.\[15\]\)//g'` echo "$x | $COUNTRY $CITY" echo "$x | $COUNTRY $CITY" >>geoip.list done Pentru cei mai inceti: - lista de nologine trebuie sa arate asa: guest guest 157.253.220.11 | no host games games 174.115.61.107 | no host user user 174.115.61.107 | no host games games 174.117.5.128 | no host guest guest 174.115.61.107 | no host - ./go nobash.txt - nobash.txt este lista ta cu nologine.