coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 27, 2012


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 38 guests online

Newest Member

advaxavardimb

Hit Counter
9134402 Visitors

cool Statistics
coolcommands:1330
Categories:83
Total queries:595502
Members:16439





Advanced Search coolcommands.com
Search Keyword:   Help
Exact match Match any (part of) word Full text search


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



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1152
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris49379
Category AIX46267
Category General UNIX43934
solaris22927
aix22116

Terms of Use
Privacy
Contact


 
coolcommands.com © 2012. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum