Skip to content

mspiegle/bash_tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

bash tricks!

subnet membership

$ ./in_cidr.sh 10.0.0.100 10.0.0.0/24
   167772260 ip as decimal
   167772160 network as decimal
  4294967040 mask
in network!

$ ./in_cidr.sh 10.0.0.100 10.0.0.0/25
   167772260 ip as decimal
   167772160 network as decimal
  4294967168 mask
in network!

$ ./in_cidr.sh 10.0.0.100 10.0.0.0/26
   167772260 ip as decimal
   167772160 network as decimal
  4294967232 mask

$ ./in_cidr.sh 10.0.0.100 10.0.0.0/27
   167772260 ip as decimal
   167772160 network as decimal
  4294967264 mask

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages