Error in script [message #536813] |
Fri, 23 December 2011 03:27 |
pokhraj_d
Messages: 117 Registered: December 2007
|
Senior Member |
|
|
Hi All,
I am new in scripting.
I wrote one script but getting error[syntax error at line 6 : `fi' unexpected] when I was trying to run the same.
The below are the script details :-
if [ #? -ne 1 ] then
echo "Insufficient args"
fi
Please help me out to resolve the issue
Thanks
P
[Updated on: Fri, 23 December 2011 03:28] Report message to a moderator
|
|
|
Re: Error in script [message #536819 is a reply to message #536813] |
Fri, 23 December 2011 03:50 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
There are not 6 lines in what you posted and so there can be no error at line 6.
In addition, This question bears no real connection with Oracle.
Please find a more appropriate forum.
The topic is locked.
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).
Regards
Michel
|
|
|