-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 30 April 2002 06:33 pm, christopher j bottaro wrote: > hehe, non strongly typed languages always confuse me. i'm trying to > get this to work > SUFFIX=${UID} % 100 > but it doesn't work. i think UID is not an interget var. since bash > vars are not strongly typed, i figured it would just do the cast for > me.
Do you really want % (remainder)? $ echo $UID 501 $ let SUFFIX="${UID}"%100 $ echo $SUFFIX 1 Or do you want to divide the two? $ let SUFFIX="${UID}"/100 $ echo $SUFFIX 5 - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.2 in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzPJHUACgkQn/07WoAb/StIpACgtFeqAogx+iDghzoS7IMPD4+A OoEAoKsqGrhAnhY5G5NUWjXuMi9zntBZ =VVTd -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list