shame.sh 309 B

12345678910111213
  1. /root/info.sh --invalid-logins \
  2. | cut -d\ -f11 \
  3. | xargs -I{} sh -c "geoiplookup {} \
  4. | cut -d\ -f4 \
  5. | tr , ' ' \
  6. | grep -f - countries.txt \
  7. | cut -f 2,3" > shamecoords.txt
  8. uniq -c shamecoords.txt \
  9. | sort -k 1 \
  10. | awk 'BEGIN{print"[["}{print $3","$2","$1","}END{print"]];"}' > population909500.json