sqlplus not working within if condition
Guys,
I am not sure what is the problem but somehow this is not working :( Code:
#!/bin/sh |
Hi,
a right way is: Code:
.. |
If you use double [[ ]] http://tldp.org/LDP/abs/html/testcon...ml#DBLBRACKETS, you don't need to quote the values there.
Incidentally, no need to export stuff either, that's only if you want the vars to appear in a subshell. |
@chrism01.
I am inexperienced person, may you enlighten me with your rich shell scripting experience. So if i use [[ ]] then i don't have to use " inside those brackets? so we need to export the variable only if I want to use them in subshell? so I don't want to export how can I initialise the variable? Please explain thanks. |
Try this for 'export' http://stackoverflow.com/questions/1...without-export
|
@chrism01.
I have seen people using SET, DEFINE or LET keywords used to define variables, can you shed some light there as well please ? Many Thanks in advance ! |
All times are GMT -5. The time now is 03:41 AM. |