SyP-

calculadoraipbas

May 10th, 2021
686
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. echo "Calculadora IP"
  4.  
  5. test -f /usr/bin/ipcalc || apt install ipcalc
  6.  
  7.  
  8. read -p "Ingrese IP: " IP
  9.  
  10. echo ""
  11.  
  12. read -p "Ingrese máscara (CIDR): " MASK
  13.  
  14. echo ""
  15.  
  16. echo "Calculando IP..."
  17.  
  18. ipcalc $IP/$MASK
RAW Paste Data