Home » Infrastructure » Unix » variable not found error
variable not found error [message #557556] Wed, 13 June 2012 17:28 Go to next message
ora1980
Messages: 251
Registered: May 2008
Senior Member
#!/bin/ksh
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
BlackSwan
Messages: 22845
Registered: January 2009
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: Wed Oct 01 22:49:16 CDT 2014

Total time taken to generate the page: 0.11515 seconds