The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
defining a variable as a number or character?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
defining a variable as a number or character?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
04-26-2005
jim mcnamara
...@...
Join Date: Feb 2004
Location: NM
Posts: 5,763
Code:
#!/bin/ksh # define num as integer and set to zero typeset -i num=0
num is now an integer variable. Works in the Korn shell.
jim mcnamara
View Public Profile
Find all posts by jim mcnamara
Find jim mcnamara's past nominations received
Find jim mcnamara's present nominations given