I'm dedicating this Blogs to all UNIX system Administrators, Especially for Solaris Administrators.
line 3:ip=` echo $ip sed 's/\./ /g'`should be:ip=` echo $ip | sed 's/\./ /g'`
oh, this post is really old, just noticed now ..probably a display issue, in the last line the printf output needs to be piped to tr as well:printf '%.2x%.2x%.2x%.2x\n' $ip tr "[:lower:]" "[:upper:]" should be:printf '%.2x%.2x%.2x%.2x\n' $ip | tr "[:lower:]" "[:upper:]"
Post a Comment
2 comments:
line 3:
ip=` echo $ip sed 's/\./ /g'`
should be:
ip=` echo $ip | sed 's/\./ /g'`
oh, this post is really old, just noticed now ..
probably a display issue, in the last line the printf output needs to be piped to tr as well:
printf '%.2x%.2x%.2x%.2x\n' $ip tr "[:lower:]" "[:upper:]"
should be:
printf '%.2x%.2x%.2x%.2x\n' $ip | tr "[:lower:]" "[:upper:]"
Post a Comment