Home » Infrastructure » Unix » variable not found error
variable not found error [message #557556] Wed, 13 June 2012 17:28 Go to next message
Messages: 251
Registered: May 2008
Senior Member
ir = "{$1}"
let "ir = ir * -1"
echo $ir

when i execute this i get
"t.ksh" 5 lines, 52 characters
$ t.ksh 3
t.ksh[2]: ir: not found
t.ksh[3]: ir = ir * -1: bad number
Re: variable not found error [message #557557 is a reply to message #557556] Wed, 13 June 2012 18:04 Go to previous message
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
posted problem has NOTHING to do with Oracle.
post this in forum dedicated to shell scripting; other than ORAFAQ.
Thread is locked.
PM me if you disagree.
Previous Topic: Getting ip of the host which initiated creation of a dedicated process
Next Topic: sqls in Shell scripting
Goto Forum:

Current Time: Thu Dec 02 07:22:40 CST 2021