Header Shadow Image


Archive for December, 2012

ksh and ksh93: line arithmetic syntax error

While using associative arrays, I run into this little issue using this sample KSH93 code: #!/bin/ksh93u+ function scmp {         typeset -A IPAA;         # Load First File.         for KEY in $(cat 1.rip); do                 IPA1[KEY]=1;         done         # Load Second File.         for KEY in $(cat 2.rip); do                 IPA2[KEY]=1;         done […]

ksh and ksh93: 0: not found [No such file or directory]

When assigning values to an associative array in KSH, it's important to note the significance of the $ value:   # typeset -A ABCD; $(( ABCD[“moi”]=0 )); $(( ABCD[“moi”]++ )); $(( ABCD[“moi”]++ )); $(( ABCD[“moi”]++ )); print ${ABCD[“moi”]}; /bin/ksh93u+: 0: not found [No such file or directory] /bin/ksh93u+: 0: not found [No such file or […]

RANDOM numbers in ksh or ksh93

Here's are an example of a random number generator in KSH or it's newer counterpart KSH93.  For this post, we'll use the latest KSH from AT&T Labs: Generate a random set of integers between 0 – 256 and use them to create a random set of IP type entries: #!/bin/ksh93u+ for (( KEY=0; KEY < […]

The current theme does not natively support menus

The current theme does not natively support menus, but you can use the "Custom Menu" widget to add any menus you create here to the theme's sidebar. “Your theme supports 0 menus. Select which menu appears in each location” Reading further on the following pages, we can enable the menus using these functions: http://codex.wordpress.org/Function_Reference/register_nav_menu http://codex.wordpress.org/Function_Reference/register_nav_menus […]


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License