Skip to content

Instantly share code, notes, and snippets.

@horaciod
Created May 5, 2022 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save horaciod/a00a4c71282fc66d6365f2699c497d45 to your computer and use it in GitHub Desktop.
Save horaciod/a00a4c71282fc66d6365f2699c497d45 to your computer and use it in GitHub Desktop.
lista de ips con vista pretty
#!/bin/bash
ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print '
@horaciod
Copy link
Author

horaciod commented May 5, 2022

salida tipo
inet 10.200.3.1 netmask 255.255.255.0 broadcast 10.200.3.255
inet 10.200.8.1 netmask 255.255.255.0 broadcast 10.200.8.255
inet 10.200.1.1 netmask 255.255.255.0 broadcast 10.200.1.255
inet 10.200.24.1 netmask 255.255.255.0 broadcast 10.200.24.255
inet 10.200.2.1 netmask 255.255.255.0 broadcast 10.200.2.255
inet 10.200.1.1 netmask 255.255.255.0 broadcast 10.200.1.255
inet 10.200.5.1 netmask 255.255.255.0 broadcast 10.200.5.255
inet 10.200.7.1 netmask 255.255.255.0 broadcast 10.200.7.255
inet 10.200.0.1 netmask 255.255.255.0 broadcast 10.200.0.255
inet 172.22.184.24 netmask 255.255.255.0 broadcast 172.22.184.255
inet 127.0.0.1 netmask 255.0.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment