|
Newest Member
|
|---|
| advaxavardimb | |
| cool Statistics |
| | coolcommands: | 1330 | | Categories: | 83 | | Total queries: | 595502 | | Members: | 16439 | |
|
|
|
 |
|
|
Advanced Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
perl script to transform hexadecimal to decimal ip address |
Description
Here is a short perl script to transform hexadecimal to decimal ip addresses (hex2ip.pl):
#!/usr/bin/perl
$P1 = hex(substr($ARGV[0],0,2)); $P2 = hex(substr($ARGV[0],2,2)); $P3 = hex(substr($ARGV[0],4,2)); $P4 = hex(substr($ARGV[0],6,2)); print "$P1.$P2.$P3.$P4\n";
Example:
# hex2ip.pl ac1af64b 172.26.246.75 |
Example
hex2ip.pl ac1af64b |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: how to show special characters in a file with vi
Example: :set list
[show me the details] |
coolcommand: how to remove a dynamically allocated i/o slot in a DLPAR in IBM AIX
Example: lsslot -c slot; rmdev -l pci14 -d -R
[show me the details] |
coolcommand: vxassist - how to create a volume with a mirror in Veritas Volume Manager
Example: vxassist make vg01 50m layout=mirror disk80 disk90
[show me the details] |
coolcommand: how to test if a string has zero length in a shell script
Example: test -z $myvar; [ -z $myvar ]
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1152 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 49379 |
| Category AIX | 46267 |
| Category General UNIX | 43934 |
| solaris | 22927 |
| aix | 22116 |
|
|
|
|